first commit

This commit is contained in:
2026-03-10 16:18:05 +00:00
commit 11f9c069b5
31635 changed files with 3187747 additions and 0 deletions

15
node_modules/expo-modules-core/build/EventEmitter.d.ts generated vendored Normal file
View File

@@ -0,0 +1,15 @@
import { EventsMap } from './ts-declarations/EventEmitter';
import type { ExpoGlobal } from './ts-declarations/global';
/**
* A subscription object that allows to conveniently remove an event listener from the emitter.
*/
export interface EventSubscription {
/**
* Removes an event listener for which the subscription has been created.
* After calling this function, the listener will no longer receive any events from the emitter.
*/
remove(): void;
}
export type EventEmitter<TEventsMap extends EventsMap = Record<never, never>> = typeof ExpoGlobal.EventEmitter<TEventsMap>;
export declare const EventEmitter: typeof ExpoGlobal.EventEmitter;
//# sourceMappingURL=EventEmitter.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"EventEmitter.d.ts","sourceRoot":"","sources":["../src/EventEmitter.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAI3D;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,MAAM,IAAI,IAAI,CAAC;CAChB;AAED,MAAM,MAAM,YAAY,CAAC,UAAU,SAAS,SAAS,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAC1E,OAAO,UAAU,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;AAC7C,eAAO,MAAM,YAAY,EAAE,OAAO,UAAU,CAAC,YAA2C,CAAC"}

View File

@@ -0,0 +1,24 @@
import { NativeEventEmitter } from 'react-native';
import { EventSubscription } from './EventEmitter';
type NativeModule = {
__expo_module_name__?: string;
startObserving?: () => void;
stopObserving?: () => void;
addListener?: any;
removeListeners?: any;
};
/**
* @deprecated Deprecated in favor of `EventEmitter`.
*/
export declare class LegacyEventEmitter {
_listenerCount: number;
_nativeModule: NativeModule;
_eventEmitter: NativeEventEmitter;
constructor(nativeModule: NativeModule);
addListener<T>(eventName: string, listener: (event: T) => void): EventSubscription;
removeAllListeners(eventName: string): void;
removeSubscription(subscription: EventSubscription): void;
emit(eventName: string, ...params: any[]): void;
}
export {};
//# sourceMappingURL=LegacyEventEmitter.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"LegacyEventEmitter.d.ts","sourceRoot":"","sources":["../src/LegacyEventEmitter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAY,MAAM,cAAc,CAAC;AAE5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAWnD,KAAK,YAAY,GAAG;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAI3B,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,eAAe,CAAC,EAAE,GAAG,CAAC;CACvB,CAAC;AAEF;;GAEG;AACH,qBAAa,kBAAkB;IAC7B,cAAc,SAAK;IAGnB,aAAa,EAAE,YAAY,CAAC;IAG5B,aAAa,EAAE,kBAAkB,CAAC;gBAEtB,YAAY,EAAE,YAAY;IAWtC,WAAW,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,GAAG,iBAAiB;IAgBlF,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAmB3C,kBAAkB,CAAC,YAAY,EAAE,iBAAiB,GAAG,IAAI;IAwBzD,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI;CAGhD"}

View File

@@ -0,0 +1,5 @@
import type { EventsMap } from './ts-declarations/EventEmitter';
import type { ExpoGlobal } from './ts-declarations/global';
export type NativeModule<TEventsMap extends EventsMap = Record<never, never>> = typeof ExpoGlobal.NativeModule<EventsMap>;
export declare const NativeModule: typeof ExpoGlobal.NativeModule;
//# sourceMappingURL=NativeModule.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"NativeModule.d.ts","sourceRoot":"","sources":["../src/NativeModule.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAI3D,MAAM,MAAM,YAAY,CAAC,UAAU,SAAS,SAAS,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAC1E,OAAO,UAAU,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;AAC5C,eAAO,MAAM,YAAY,EAAE,OAAO,UAAU,CAAC,YAA2C,CAAC"}

View File

@@ -0,0 +1,8 @@
import type { ProxyNativeModule } from './NativeModulesProxy.types';
/**
* @deprecated `NativeModulesProxy` is deprecated and might be removed in the future releases.
* Use `requireNativeModule` or `requireOptionalNativeModule` instead.
*/
declare const _default: Record<string, ProxyNativeModule>;
export default _default;
//# sourceMappingURL=NativeModulesProxy.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"NativeModulesProxy.d.ts","sourceRoot":"","sources":["../src/NativeModulesProxy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAIpE;;;GAGG;wBACkB,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC;AAAtD,wBAAuD"}

View File

@@ -0,0 +1,8 @@
import type { ProxyNativeModule } from './NativeModulesProxy.types';
/**
* @deprecated `NativeModulesProxy` is deprecated and might be removed in the future releases.
* Use `requireNativeModule` or `requireOptionalNativeModule` instead.
*/
declare const NativeModulesProxy: Record<string, ProxyNativeModule>;
export default NativeModulesProxy;
//# sourceMappingURL=NativeModulesProxy.native.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"NativeModulesProxy.native.d.ts","sourceRoot":"","sources":["../src/NativeModulesProxy.native.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAUpE;;;GAGG;AACH,QAAA,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAM,CAAC;AAqCjE,eAAe,kBAAkB,CAAC"}

View File

@@ -0,0 +1,5 @@
export type ProxyNativeModule = {
addListener?: (eventName: string) => void;
removeListeners?: (count: number) => void;
} & Record<string, any>;
//# sourceMappingURL=NativeModulesProxy.types.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"NativeModulesProxy.types.d.ts","sourceRoot":"","sources":["../src/NativeModulesProxy.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}

View File

@@ -0,0 +1,6 @@
import React from 'react';
/**
* A drop-in replacement for `requireNativeComponent`.
*/
export declare function requireNativeViewManager<P = any>(moduleName: string, viewName?: string): React.ComponentType<P>;
//# sourceMappingURL=NativeViewManagerAdapter.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"NativeViewManagerAdapter.d.ts","sourceRoot":"","sources":["../src/NativeViewManagerAdapter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,GAAG,GAAG,EAC9C,UAAU,EAAE,MAAM,EAClB,QAAQ,CAAC,EAAE,MAAM,GAChB,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAExB"}

View File

@@ -0,0 +1,6 @@
import { type ComponentType } from 'react';
/**
* A drop-in replacement for `requireNativeComponent`.
*/
export declare function requireNativeViewManager<P>(moduleName: string, viewName?: string): ComponentType<P>;
//# sourceMappingURL=NativeViewManagerAdapter.native.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"NativeViewManagerAdapter.native.d.ts","sourceRoot":"","sources":["../src/NativeViewManagerAdapter.native.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAkB,KAAK,aAAa,EAA4B,MAAM,OAAO,CAAC;AAwFrF;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,EACxC,UAAU,EAAE,MAAM,EAClB,QAAQ,CAAC,EAAE,MAAM,GAChB,aAAa,CAAC,CAAC,CAAC,CAsClB"}

View File

@@ -0,0 +1,23 @@
import { PermissionResponse } from './PermissionsInterface';
type RequestPermissionMethod<Permission extends PermissionResponse> = () => Promise<Permission>;
type GetPermissionMethod<Permission extends PermissionResponse> = () => Promise<Permission>;
type PermissionHookMethods<Permission extends PermissionResponse, Options = never> = {
/** The permission method that requests the user to grant permission. */
requestMethod: (options?: Options) => Promise<Permission>;
/** The permission method that only fetches the current permission status. */
getMethod: (options?: Options) => Promise<Permission>;
};
type PermissionHookBehavior = {
/** If the hook should automatically fetch the current permission status, without asking the user. */
get?: boolean;
/** If the hook should automatically request the user to grant permission. */
request?: boolean;
};
export type PermissionHookOptions<Options extends object> = PermissionHookBehavior & Options;
/**
* Create a new permission hook with the permission methods built-in.
* This can be used to quickly create specific permission hooks in every module.
*/
export declare function createPermissionHook<Permission extends PermissionResponse, Options extends object>(methods: PermissionHookMethods<Permission, Options>): (options?: PermissionHookOptions<Options>) => [Permission | null, RequestPermissionMethod<Permission>, GetPermissionMethod<Permission>];
export {};
//# sourceMappingURL=PermissionsHook.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"PermissionsHook.d.ts","sourceRoot":"","sources":["../src/PermissionsHook.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D,KAAK,uBAAuB,CAAC,UAAU,SAAS,kBAAkB,IAAI,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC;AAChG,KAAK,mBAAmB,CAAC,UAAU,SAAS,kBAAkB,IAAI,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC;AAE5F,KAAK,qBAAqB,CAAC,UAAU,SAAS,kBAAkB,EAAE,OAAO,GAAG,KAAK,IAAI;IACnF,wEAAwE;IACxE,aAAa,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC;IAC1D,6EAA6E;IAC7E,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC;CACvD,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,qGAAqG;IACrG,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,6EAA6E;IAC7E,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,qBAAqB,CAAC,OAAO,SAAS,MAAM,IAAI,sBAAsB,GAAG,OAAO,CAAC;AAwD7F;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,SAAS,kBAAkB,EAAE,OAAO,SAAS,MAAM,EAChG,OAAO,EAAE,qBAAqB,CAAC,UAAU,EAAE,OAAO,CAAC,IAE3C,UAAU,qBAAqB,CAAC,OAAO,CAAC,+FAEjD"}

View File

@@ -0,0 +1,42 @@
export declare enum PermissionStatus {
/**
* User has granted the permission.
*/
GRANTED = "granted",
/**
* User hasn't granted or denied the permission yet.
*/
UNDETERMINED = "undetermined",
/**
* User has denied the permission.
*/
DENIED = "denied"
}
/**
* Permission expiration time. Currently, all permissions are granted permanently.
*/
export type PermissionExpiration = 'never' | number;
/**
* An object obtained by permissions get and request functions.
*/
export type PermissionResponse = {
/**
* Determines the status of the permission.
*/
status: PermissionStatus;
/**
* Determines time when the permission expires.
*/
expires: PermissionExpiration;
/**
* A convenience boolean that indicates if the permission is granted.
*/
granted: boolean;
/**
* Indicates if user can be asked again for specific permission.
* If not, one should be directed to the Settings app
* in order to enable/disable the permission.
*/
canAskAgain: boolean;
};
//# sourceMappingURL=PermissionsInterface.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"PermissionsInterface.d.ts","sourceRoot":"","sources":["../src/PermissionsInterface.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC1B;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,YAAY,iBAAiB;IAC7B;;OAEG;IACH,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,GAAG,MAAM,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,MAAM,EAAE,gBAAgB,CAAC;IACzB;;OAEG;IACH,OAAO,EAAE,oBAAoB,CAAC;IAC9B;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC"}

45
node_modules/expo-modules-core/build/Platform.d.ts generated vendored Normal file
View File

@@ -0,0 +1,45 @@
import { PlatformOSType } from 'react-native';
export type PlatformSelectOSType = PlatformOSType | 'native' | 'electron' | 'default';
export type PlatformSelect = <T>(specifics: {
[platform in PlatformSelectOSType]?: T;
}) => T;
declare const Platform: {
/**
* Denotes the currently running platform.
* Can be one of ios, android, web.
*/
OS: string;
/**
* Returns the value with the matching platform.
* Object keys can be any of ios, android, native, web, default.
*
* @ios ios, native, default
* @android android, native, default
* @web web, default
*/
select: PlatformSelect;
/**
* Denotes if the DOM API is available in the current environment.
* The DOM is not available in native React runtimes and Node.js.
*/
isDOMAvailable: boolean;
/**
* Denotes if the current environment can attach event listeners
* to the window. This will return false in native React
* runtimes and Node.js.
*/
canUseEventListeners: boolean;
/**
* Denotes if the current environment can inspect properties of the
* screen on which the current window is being rendered. This will
* return false in native React runtimes and Node.js.
*/
canUseViewport: boolean;
/**
* If the JavaScript is being executed in a remote JavaScript environment.
* When `true`, synchronous native invocations cannot be executed.
*/
isAsyncDebugging: boolean;
};
export default Platform;
//# sourceMappingURL=Platform.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"Platform.d.ts","sourceRoot":"","sources":["../src/Platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAmC,MAAM,cAAc,CAAC;AAS/E,MAAM,MAAM,oBAAoB,GAAG,cAAc,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;AAEtF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,EAAE,SAAS,EAAE;KAAG,QAAQ,IAAI,oBAAoB,CAAC,CAAC,EAAE,CAAC;CAAE,KAAK,CAAC,CAAC;AA0B7F,QAAA,MAAM,QAAQ;IACZ;;;OAGG;;IAEH;;;;;;;OAOG;YACqB,cAAc;IACtC;;;OAGG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;OAGG;;CAEJ,CAAC;AAEF,eAAe,QAAQ,CAAC"}

8
node_modules/expo-modules-core/build/Refs.d.ts generated vendored Normal file
View File

@@ -0,0 +1,8 @@
import { type RefObject } from 'react';
/**
* Create a React ref object that is friendly for snapshots.
* It will be represented as `[React.ref]` in snapshots.
* @returns A React ref object.
*/
export declare function createSnapshotFriendlyRef<T>(): RefObject<T | null>;
//# sourceMappingURL=Refs.d.ts.map

1
node_modules/expo-modules-core/build/Refs.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"Refs.d.ts","sourceRoot":"","sources":["../src/Refs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAElD;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,CAElE"}

View File

@@ -0,0 +1,5 @@
import { EventsMap } from './ts-declarations/EventEmitter';
import type { ExpoGlobal } from './ts-declarations/global';
export type SharedObject<TEventsMap extends EventsMap = Record<never, never>> = typeof ExpoGlobal.SharedObject<TEventsMap>;
export declare const SharedObject: typeof ExpoGlobal.SharedObject;
//# sourceMappingURL=SharedObject.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"SharedObject.d.ts","sourceRoot":"","sources":["../src/SharedObject.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAI3D,MAAM,MAAM,YAAY,CAAC,UAAU,SAAS,SAAS,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAC1E,OAAO,UAAU,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;AAC7C,eAAO,MAAM,YAAY,EAAE,OAAO,UAAU,CAAC,YAA2C,CAAC"}

5
node_modules/expo-modules-core/build/SharedRef.d.ts generated vendored Normal file
View File

@@ -0,0 +1,5 @@
import { EventsMap } from './ts-declarations/EventEmitter';
import type { ExpoGlobal } from './ts-declarations/global';
export type SharedRef<TNativeRefType extends string = 'unknown', TEventsMap extends EventsMap = Record<never, never>> = typeof ExpoGlobal.SharedRef<TNativeRefType, TEventsMap>;
export declare const SharedRef: typeof ExpoGlobal.SharedRef;
//# sourceMappingURL=SharedRef.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"SharedRef.d.ts","sourceRoot":"","sources":["../src/SharedRef.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAI3D,MAAM,MAAM,SAAS,CACnB,cAAc,SAAS,MAAM,GAAG,SAAS,EACzC,UAAU,SAAS,SAAS,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IACjD,OAAO,UAAU,CAAC,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;AAC5D,eAAO,MAAM,SAAS,EAAE,OAAO,UAAU,CAAC,SAAqC,CAAC"}

View File

@@ -0,0 +1,3 @@
import type { TurboModule } from 'react-native';
export declare function createTurboModuleToExpoProxy(turboModule: TurboModule | null, name: string): null;
//# sourceMappingURL=TurboModuleToExpoModuleProxy.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"TurboModuleToExpoModuleProxy.d.ts","sourceRoot":"","sources":["../src/TurboModuleToExpoModuleProxy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,wBAAgB,4BAA4B,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,EAAE,IAAI,EAAE,MAAM,QAEzF"}

View File

@@ -0,0 +1,3 @@
import type { TurboModule } from 'react-native';
export declare function createTurboModuleToExpoProxy(turboModule: TurboModule | null, name: string): any;
//# sourceMappingURL=TurboModuleToExpoModuleProxy.native.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"TurboModuleToExpoModuleProxy.native.d.ts","sourceRoot":"","sources":["../src/TurboModuleToExpoModuleProxy.native.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAqB,MAAM,cAAc,CAAC;AAEnE,wBAAgB,4BAA4B,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,EAAE,IAAI,EAAE,MAAM,OA2BzF"}

View File

@@ -0,0 +1,9 @@
/** A union type for all integer based [`TypedArray` objects](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#typedarray_objects). */
export type IntBasedTypedArray = Int8Array | Int16Array | Int32Array;
/** A union type for all unsigned integer based [`TypedArray` objects](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#typedarray_objects). */
export type UintBasedTypedArray = Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array;
/** A union type for all floating point based [`TypedArray` objects](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#typedarray_objects). */
export type FloatBasedTypedArray = Float32Array | Float64Array;
/** A [`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) describes an array-like view of an underlying binary data buffer. */
export type TypedArray = IntBasedTypedArray | UintBasedTypedArray | FloatBasedTypedArray;
//# sourceMappingURL=TypedArrays.types.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"TypedArrays.types.d.ts","sourceRoot":"","sources":["../src/TypedArrays.types.ts"],"names":[],"mappings":"AAAA,iLAAiL;AACjL,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAErE,0LAA0L;AAC1L,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,iBAAiB,GAAG,WAAW,GAAG,WAAW,CAAC;AAE7F,wLAAwL;AACxL,MAAM,MAAM,oBAAoB,GAAG,YAAY,GAAG,YAAY,CAAC;AAE/D,sLAAsL;AACtL,MAAM,MAAM,UAAU,GAAG,kBAAkB,GAAG,mBAAmB,GAAG,oBAAoB,CAAC"}

View File

@@ -0,0 +1,7 @@
import './polyfill';
/**
* Ensures that the native modules are installed in the current runtime.
* Otherwise, it synchronously calls a native function that installs them.
*/
export declare function ensureNativeModulesAreInstalled(): void;
//# sourceMappingURL=ensureNativeModulesAreInstalled.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ensureNativeModulesAreInstalled.d.ts","sourceRoot":"","sources":["../src/ensureNativeModulesAreInstalled.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,CAAC;AAEpB;;;GAGG;AACH,wBAAgB,+BAA+B,IAAI,IAAI,CAEtD"}

View File

@@ -0,0 +1,6 @@
/**
* Ensures that the native modules are installed in the current runtime.
* Otherwise, it synchronously calls a native function that installs them.
*/
export declare function ensureNativeModulesAreInstalled(): void;
//# sourceMappingURL=ensureNativeModulesAreInstalled.native.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ensureNativeModulesAreInstalled.native.d.ts","sourceRoot":"","sources":["../src/ensureNativeModulesAreInstalled.native.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,+BAA+B,IAAI,IAAI,CAetD"}

View File

@@ -0,0 +1,5 @@
export declare const isDOMAvailable = false;
export declare const canUseEventListeners = false;
export declare const canUseViewport = false;
export declare let isAsyncDebugging: boolean;
//# sourceMappingURL=browser.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/environment/browser.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,QAAQ,CAAC;AACpC,eAAO,MAAM,oBAAoB,QAAQ,CAAC;AAC1C,eAAO,MAAM,cAAc,QAAQ,CAAC;AAEpC,eAAO,IAAI,gBAAgB,EAAE,OAAe,CAAC"}

View File

@@ -0,0 +1,10 @@
declare global {
interface Window {
attachEvent(event: string, listener: EventListener): boolean;
}
}
export declare const isDOMAvailable: boolean;
export declare const canUseEventListeners: boolean;
export declare const canUseViewport: boolean;
export declare const isAsyncDebugging = false;
//# sourceMappingURL=browser.web.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"browser.web.d.ts","sourceRoot":"","sources":["../../src/environment/browser.web.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,CAAC;IAEb,UAAU,MAAM;QACd,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC;KAC9D;CACF;AAID,eAAO,MAAM,cAAc,SAAoE,CAAC;AAChG,eAAO,MAAM,oBAAoB,SACoC,CAAC;AACtE,eAAO,MAAM,cAAc,SAAoC,CAAC;AAChE,eAAO,MAAM,gBAAgB,QAAQ,CAAC"}

View File

@@ -0,0 +1,11 @@
/**
* A general error class that should be used for all errors in Expo modules.
* Guarantees a `code` field that can be used to differentiate between different
* types of errors without further subclassing Error.
*/
export declare class CodedError extends Error {
code: string;
info?: any;
constructor(code: string, message: string);
}
//# sourceMappingURL=CodedError.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"CodedError.d.ts","sourceRoot":"","sources":["../../src/errors/CodedError.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,UAAW,SAAQ,KAAK;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,GAAG,CAAC;gBAEC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;CAI1C"}

View File

@@ -0,0 +1,10 @@
import { CodedError } from './CodedError';
/**
* A class for errors to be thrown when a property is accessed which is
* unavailable, unsupported, or not currently implemented on the running
* platform.
*/
export declare class UnavailabilityError extends CodedError {
constructor(moduleName: string, propertyName: string);
}
//# sourceMappingURL=UnavailabilityError.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"UnavailabilityError.d.ts","sourceRoot":"","sources":["../../src/errors/UnavailabilityError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C;;;;GAIG;AACH,qBAAa,mBAAoB,SAAQ,UAAU;gBACrC,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM;CAMrD"}

View File

@@ -0,0 +1,7 @@
import { DependencyList } from 'react';
import type { SharedObject } from '../ts-declarations/SharedObject';
/**
* Returns a shared object, which is automatically cleaned up when the component is unmounted.
*/
export declare function useReleasingSharedObject<TSharedObject extends SharedObject>(factory: () => TSharedObject, dependencies: DependencyList): TSharedObject;
//# sourceMappingURL=useReleasingSharedObject.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"useReleasingSharedObject.d.ts","sourceRoot":"","sources":["../../src/hooks/useReleasingSharedObject.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAA8B,MAAM,OAAO,CAAC;AAEnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,aAAa,SAAS,YAAY,EACzE,OAAO,EAAE,MAAM,aAAa,EAC5B,YAAY,EAAE,cAAc,GAC3B,aAAa,CAoDf"}

25
node_modules/expo-modules-core/build/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,25 @@
import './sweet/setUpJsLogger.fx';
import './polyfill';
export type * from './ts-declarations/global';
export { EventEmitter, type EventSubscription } from './EventEmitter';
export { NativeModule } from './NativeModule';
export { SharedObject } from './SharedObject';
export { SharedRef } from './SharedRef';
export { default as Platform } from './Platform';
export { default as uuid } from './uuid';
export type { ProxyNativeModule } from './NativeModulesProxy.types';
export { requireNativeViewManager } from './NativeViewManagerAdapter';
export * from './requireNativeModule';
export * from './registerWebModule';
export * from './TypedArrays.types';
export * from './PermissionsInterface';
export * from './PermissionsHook';
export * from './Refs';
export * from './hooks/useReleasingSharedObject';
export * from './reload';
export { CodedError } from './errors/CodedError';
export { UnavailabilityError } from './errors/UnavailabilityError';
export { LegacyEventEmitter } from './LegacyEventEmitter';
export { default as NativeModulesProxy } from './NativeModulesProxy';
export { installOnUIRuntime } from './worklets';
//# sourceMappingURL=index.d.ts.map

1
node_modules/expo-modules-core/build/index.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,0BAA0B,CAAC;AAClC,OAAO,YAAY,CAAC;AAEpB,mBAAmB,0BAA0B,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEzC,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAElC,cAAc,QAAQ,CAAC;AAEvB,cAAc,kCAAkC,CAAC;AACjD,cAAc,UAAU,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAErE,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC"}

View File

@@ -0,0 +1,28 @@
import { type EventEmitter as EventEmitterType, type EventSubscription, EventsMap } from '../ts-declarations/EventEmitter';
import type { NativeModule as NativeModuleType } from '../ts-declarations/NativeModule';
import type { SharedObject as SharedObjectType } from '../ts-declarations/SharedObject';
import type { SharedRef as SharedRefType } from '../ts-declarations/SharedRef';
export declare class EventEmitter<TEventsMap extends EventsMap> implements EventEmitterType {
private listeners?;
addListener<EventName extends keyof TEventsMap>(eventName: EventName, listener: TEventsMap[EventName]): EventSubscription;
removeListener<EventName extends keyof TEventsMap>(eventName: EventName, listener: TEventsMap[EventName]): void;
removeAllListeners<EventName extends keyof TEventsMap>(eventName: EventName): void;
emit<EventName extends keyof TEventsMap>(eventName: EventName, ...args: Parameters<TEventsMap[EventName]>): void;
listenerCount<EventName extends keyof TEventsMap>(eventName: EventName): number;
startObserving<EventName extends keyof TEventsMap>(eventName: EventName): void;
stopObserving<EventName extends keyof TEventsMap>(eventName: EventName): void;
}
export declare class NativeModule<TEventsMap extends Record<never, never>> extends EventEmitter<TEventsMap> implements NativeModuleType {
[key: string]: any;
ViewPrototypes?: {
[viewName: string]: object;
};
__expo_module_name__?: string;
}
export declare class SharedObject<TEventsMap extends Record<never, never>> extends EventEmitter<TEventsMap> implements SharedObjectType {
release(): void;
}
export declare class SharedRef<TNativeRefType extends string = 'unknown', TEventsMap extends EventsMap = Record<never, never>> extends SharedObject<TEventsMap> implements SharedRefType<TNativeRefType> {
nativeRefType: string;
}
//# sourceMappingURL=CoreModule.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"CoreModule.d.ts","sourceRoot":"","sources":["../../src/polyfill/CoreModule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,IAAI,gBAAgB,EACrC,KAAK,iBAAiB,EACtB,SAAS,EACV,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxF,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxF,OAAO,KAAK,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE/E,qBAAa,YAAY,CAAC,UAAU,SAAS,SAAS,CAAE,YAAW,gBAAgB;IACjF,OAAO,CAAC,SAAS,CAAC,CAAuC;IAEzD,WAAW,CAAC,SAAS,SAAS,MAAM,UAAU,EAC5C,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,UAAU,CAAC,SAAS,CAAC,GAC9B,iBAAiB;IAuBpB,cAAc,CAAC,SAAS,SAAS,MAAM,UAAU,EAC/C,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,UAAU,CAAC,SAAS,CAAC,GAC9B,IAAI;IAOP,kBAAkB,CAAC,SAAS,SAAS,MAAM,UAAU,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI;IAQlF,IAAI,CAAC,SAAS,SAAS,MAAM,UAAU,EACrC,SAAS,EAAE,SAAS,EACpB,GAAG,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,GACzC,IAAI;IAeP,aAAa,CAAC,SAAS,SAAS,MAAM,UAAU,EAAE,SAAS,EAAE,SAAS,GAAG,MAAM;IAI/E,cAAc,CAAC,SAAS,SAAS,MAAM,UAAU,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI;IAE9E,aAAa,CAAC,SAAS,SAAS,MAAM,UAAU,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI;CAC9E;AAED,qBAAa,YAAY,CAAC,UAAU,SAAS,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAC/D,SAAQ,YAAY,CAAC,UAAU,CAC/B,YAAW,gBAAgB;IAE3B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,cAAc,CAAC,EAAE;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAChD,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,qBAAa,YAAY,CAAC,UAAU,SAAS,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAC/D,SAAQ,YAAY,CAAC,UAAU,CAC/B,YAAW,gBAAgB;IAE3B,OAAO,IAAI,IAAI;CAGhB;AAED,qBAAa,SAAS,CAClB,cAAc,SAAS,MAAM,GAAG,SAAS,EACzC,UAAU,SAAS,SAAS,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAErD,SAAQ,YAAY,CAAC,UAAU,CAC/B,YAAW,aAAa,CAAC,cAAc,CAAC;IAExC,aAAa,EAAE,MAAM,CAAa;CACnC"}

View File

@@ -0,0 +1,3 @@
export * from '../ts-declarations/global';
export declare function installExpoGlobalPolyfill(): void;
//# sourceMappingURL=dangerous-internal.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"dangerous-internal.d.ts","sourceRoot":"","sources":["../../src/polyfill/dangerous-internal.ts"],"names":[],"mappings":"AAKA,cAAc,2BAA2B,CAAC;AAE1C,wBAAgB,yBAAyB,SA0BxC"}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/polyfill/index.ts"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=index.web.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../src/polyfill/index.web.ts"],"names":[],"mappings":""}

View File

@@ -0,0 +1,9 @@
import type { NativeModule } from './ts-declarations/NativeModule';
/**
* Registers a web module.
* @param moduleImplementation A class that extends `NativeModule`. The class is registered under `globalThis.expo.modules[className]`.
* @param moduleName A name to register the module under `globalThis.expo.modules[className]`.
* @returns A singleton instance of the class passed into arguments.
*/
export declare function registerWebModule<EventsMap extends Record<never, never>, ModuleType extends typeof NativeModule<EventsMap>>(moduleImplementation: ModuleType, moduleName: string): ModuleType;
//# sourceMappingURL=registerWebModule.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"registerWebModule.d.ts","sourceRoot":"","sources":["../src/registerWebModule.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAEnE;;;;;GAKG;AAEH,wBAAgB,iBAAiB,CAC/B,SAAS,SAAS,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EACtC,UAAU,SAAS,OAAO,YAAY,CAAC,SAAS,CAAC,EACjD,oBAAoB,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,GAAG,UAAU,CAiBlE"}

10
node_modules/expo-modules-core/build/reload.d.ts generated vendored Normal file
View File

@@ -0,0 +1,10 @@
/**
* Reloads the app. This method works for both release and debug builds.
*
* Unlike [`Updates.reloadAsync()`](/versions/latest/sdk/updates/#updatesreloadasync),
* this function does not use a new update even if one is available. It only reloads the app using the same JavaScript bundle that is currently running.
*
* @param reason The reason for reloading the app. This is used only for some platforms.
*/
export declare function reloadAppAsync(reason?: string): Promise<void>;
//# sourceMappingURL=reload.d.ts.map

1
node_modules/expo-modules-core/build/reload.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"reload.d.ts","sourceRoot":"","sources":["../src/reload.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAsB,cAAc,CAAC,MAAM,GAAE,MAAgC,GAAG,OAAO,CAAC,IAAI,CAAC,CAE5F"}

View File

@@ -0,0 +1,19 @@
/**
* Imports the native module registered with given name. In the first place it tries to load
* the module installed through the JSI host object and then falls back to the bridge proxy module.
* Notice that the modules loaded from the proxy may not support some features like synchronous functions.
*
* @param moduleName Name of the requested native module.
* @returns Object representing the native module.
* @throws Error when there is no native module with given name.
*/
export declare function requireNativeModule<ModuleType = any>(moduleName: string): ModuleType;
/**
* Imports the native module registered with the given name. The same as `requireNativeModule`,
* but returns `null` when the module cannot be found instead of throwing an error.
*
* @param moduleName Name of the requested native module.
* @returns Object representing the native module or `null` when it cannot be found.
*/
export declare function requireOptionalNativeModule<ModuleType = any>(moduleName: string): ModuleType | null;
//# sourceMappingURL=requireNativeModule.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"requireNativeModule.d.ts","sourceRoot":"","sources":["../src/requireNativeModule.ts"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,GAAG,GAAG,EAAE,UAAU,EAAE,MAAM,GAAG,UAAU,CAOpF;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,UAAU,GAAG,GAAG,EAC1D,UAAU,EAAE,MAAM,GACjB,UAAU,GAAG,IAAI,CAenB"}

View File

@@ -0,0 +1,3 @@
export declare function requireNativeModule<ModuleType = any>(moduleName: string): ModuleType;
export declare function requireOptionalNativeModule<ModuleType = any>(moduleName: string): ModuleType | null;
//# sourceMappingURL=requireNativeModule.web.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"requireNativeModule.web.d.ts","sourceRoot":"","sources":["../src/requireNativeModule.web.ts"],"names":[],"mappings":"AAAA,wBAAgB,mBAAmB,CAAC,UAAU,GAAG,GAAG,EAAE,UAAU,EAAE,MAAM,GAAG,UAAU,CAUpF;AAED,wBAAgB,2BAA2B,CAAC,UAAU,GAAG,GAAG,EAC1D,UAAU,EAAE,MAAM,GACjB,UAAU,GAAG,IAAI,CAKnB"}

View File

@@ -0,0 +1,3 @@
declare const _default: any;
export default _default;
//# sourceMappingURL=NativeJSLogger.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"NativeJSLogger.d.ts","sourceRoot":"","sources":["../../src/sweet/NativeJSLogger.ts"],"names":[],"mappings":";AAEA,wBAAsE"}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=setUpJsLogger.fx.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"setUpJsLogger.fx.d.ts","sourceRoot":"","sources":["../../src/sweet/setUpJsLogger.fx.ts"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=setUpJsLogger.fx.web.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"setUpJsLogger.fx.web.d.ts","sourceRoot":"","sources":["../../src/sweet/setUpJsLogger.fx.web.ts"],"names":[],"mappings":""}

View File

@@ -0,0 +1,73 @@
/**
* Base type of the events map, whose keys represent supported event names
* and values are the signatures of the listener for that specific event.
*/
export type EventsMap = Record<string, (...args: any[]) => void>;
/**
* A subscription object that allows to conveniently remove an event listener from the emitter.
*/
export type EventSubscription = {
/**
* Removes an event listener for which the subscription has been created.
* After calling this function, the listener will no longer receive any events from the emitter.
*/
remove(): void;
};
/**
* A class that provides a consistent API for emitting and listening to events.
* It shares many concepts with other emitter APIs, such as Node's EventEmitter and `fbemitter`.
* When the event is emitted, all of the functions attached to that specific event are called *synchronously*.
* Any values returned by the called listeners are *ignored* and discarded.
* Its implementation is written in C++ and common for all the platforms.
*/
export declare class EventEmitter<TEventsMap extends EventsMap = Record<never, never>> {
/**
* A dummy private property with the given generic type. It is required for TypeScript to correctly infer this subtype.
* E.g. `useEvent` would not be able to infer the events map which results in accepting any string as the event name.
* @private
* @deprecated
*/
_TEventsMap_DONT_USE_IT?: TEventsMap;
/**
* Creates a new event emitter instance.
*/
constructor();
/**
* @deprecated As of Expo SDK 52 the given object is already an EventEmitter.
* Creating a new one is not necessary.
* @hidden
*/
constructor(object: EventEmitter);
/**
* Adds a listener for the given event name.
*/
addListener<EventName extends keyof TEventsMap>(eventName: EventName, listener: TEventsMap[EventName]): EventSubscription;
/**
* Removes a listener for the given event name.
*/
removeListener<EventName extends keyof TEventsMap>(eventName: EventName, listener: TEventsMap[EventName]): void;
/**
* Removes all listeners for the given event name.
*/
removeAllListeners(eventName: keyof TEventsMap): void;
/**
* Synchronously calls all the listeners attached to that specific event.
* The event can include any number of arguments that will be passed to the listeners.
*/
emit<EventName extends keyof TEventsMap>(eventName: EventName, ...args: Parameters<TEventsMap[EventName]>): void;
/**
* Returns a number of listeners added to the given event.
*/
listenerCount<EventName extends keyof TEventsMap>(eventName: EventName): number;
/**
* Function that is automatically invoked when the first listener for an event with the given name is added.
* Override it in a subclass to perform some additional setup once the event started being observed.
*/
startObserving?<EventName extends keyof TEventsMap>(eventName: EventName): void;
/**
* Function that is automatically invoked when the last listener for an event with the given name is removed.
* Override it in a subclass to perform some additional cleanup once the event is no longer observed.
*/
stopObserving?<EventName extends keyof TEventsMap>(eventName: EventName): void;
}
//# sourceMappingURL=EventEmitter.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"EventEmitter.d.ts","sourceRoot":"","sources":["../../src/ts-declarations/EventEmitter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;OAGG;IACH,MAAM,IAAI,IAAI,CAAC;CAChB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,OAAO,YAAY,CAAC,UAAU,SAAS,SAAS,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC;IACnF;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,UAAU,CAAC;IAErC;;OAEG;;IAGH;;;;OAIG;gBACS,MAAM,EAAE,YAAY;IAEhC;;OAEG;IACH,WAAW,CAAC,SAAS,SAAS,MAAM,UAAU,EAC5C,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,UAAU,CAAC,SAAS,CAAC,GAC9B,iBAAiB;IAEpB;;OAEG;IACH,cAAc,CAAC,SAAS,SAAS,MAAM,UAAU,EAC/C,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,UAAU,CAAC,SAAS,CAAC,GAC9B,IAAI;IAEP;;OAEG;IACH,kBAAkB,CAAC,SAAS,EAAE,MAAM,UAAU,GAAG,IAAI;IAErD;;;OAGG;IACH,IAAI,CAAC,SAAS,SAAS,MAAM,UAAU,EACrC,SAAS,EAAE,SAAS,EACpB,GAAG,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,GACzC,IAAI;IAEP;;OAEG;IACH,aAAa,CAAC,SAAS,SAAS,MAAM,UAAU,EAAE,SAAS,EAAE,SAAS,GAAG,MAAM;IAE/E;;;OAGG;IACH,cAAc,CAAC,CAAC,SAAS,SAAS,MAAM,UAAU,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI;IAE/E;;;OAGG;IACH,aAAa,CAAC,CAAC,SAAS,SAAS,MAAM,UAAU,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI;CAC/E"}

View File

@@ -0,0 +1,14 @@
import type { EventEmitter, EventsMap } from './EventEmitter';
/**
* A class for all native modules. Extends the [`EventEmitter`](#eventemittertype) class.
*/
export declare class NativeModule<TEventsMap extends EventsMap = Record<never, never>> extends EventEmitter<TEventsMap> {
/**
* Prototypes of the native components exported by the module.
* @private
*/
ViewPrototypes?: {
[viewName: string]: object;
};
}
//# sourceMappingURL=NativeModule.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"NativeModule.d.ts","sourceRoot":"","sources":["../../src/ts-declarations/NativeModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE9D;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,YAAY,CAC/B,UAAU,SAAS,SAAS,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CACnD,SAAQ,YAAY,CAAC,UAAU,CAAC;IAChC;;;OAGG;IACH,cAAc,CAAC,EAAE;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACjD"}

View File

@@ -0,0 +1,20 @@
import type { EventEmitter, EventsMap } from './EventEmitter';
/**
* Base class for all shared objects that extends the [`EventEmitter`](#eventemittertype) class.
* The implementation is written in C++, installed through JSI and common for mobile platforms.
*/
export declare class SharedObject<TEventsMap extends EventsMap = Record<never, never>> extends EventEmitter<TEventsMap> implements EventEmitter<TEventsMap> {
/**
* A function that detaches the JS and native objects to let the native object deallocate
* before the JS object gets deallocated by the JS garbage collector. Any subsequent calls to native
* functions of the object will throw an error as it is no longer associated with its native counterpart.
*
* In most cases, you should never need to use this function, except some specific performance-critical cases when
* manual memory management makes sense and the native object is known to exclusively retain some native memory
* (such as binary data or image bitmap). Before calling this function, you should ensure that nothing else will use
* this object later on. Shared objects created by React hooks are usually automatically released in the effect's cleanup phase,
* for example: `useVideoPlayer()` from `expo-video` and `useImage()` from `expo-image`.
*/
release(): void;
}
//# sourceMappingURL=SharedObject.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"SharedObject.d.ts","sourceRoot":"","sources":["../../src/ts-declarations/SharedObject.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE9D;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,YAAY,CAAC,UAAU,SAAS,SAAS,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CACnF,SAAQ,YAAY,CAAC,UAAU,CAC/B,YAAW,YAAY,CAAC,UAAU,CAAC;IAEnC;;;;;;;;;;OAUG;IACH,OAAO,IAAI,IAAI;CAChB"}

View File

@@ -0,0 +1,24 @@
import type { EventsMap } from './EventEmitter';
import type { SharedObject } from './SharedObject';
/**
* A [`SharedObject`](#sharedobjecttype) that holds a reference to any native object. Allows passing references
* to native instances among different independent libraries.
*
* For instance, `ImageRef` from `expo-image` references a [`Drawable`](https://developer.android.com/reference/android/graphics/drawable/Drawable)
* on Android and an [`UIImage`](https://developer.apple.com/documentation/uikit/uiimage) on iOS. Since both types are common on these platforms,
* different native modules can use them without depending on each other. In particular, this enables the `expo-image-manipulator` to pass the resulted image
* directly to the image view from `expo-image` without any additional writes and reads from the file system.
*/
export declare class SharedRef<TNativeRefType extends string = 'unknown', TEventsMap extends EventsMap = Record<never, never>> extends SharedObject<TEventsMap> implements SharedObject<TEventsMap> {
/**
* A dummy private property with the given generic type. It is required for TypeScript to correctly infer this subtype.
* @private
* @deprecated
*/
_TNativeRefType_DONT_USE_IT?: TNativeRefType;
/**
* The type of the native reference.
*/
nativeRefType: string;
}
//# sourceMappingURL=SharedRef.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"SharedRef.d.ts","sourceRoot":"","sources":["../../src/ts-declarations/SharedRef.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,SAAS,CAC1B,cAAc,SAAS,MAAM,GAAG,SAAS,EACzC,UAAU,SAAS,SAAS,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAErD,SAAQ,YAAY,CAAC,UAAU,CAC/B,YAAW,YAAY,CAAC,UAAU,CAAC;IAEnC;;;;OAIG;IACH,2BAA2B,CAAC,EAAE,cAAc,CAAC;IAE7C;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB"}

View File

@@ -0,0 +1,104 @@
import { EventEmitter } from './EventEmitter';
import { NativeModule } from './NativeModule';
import { SharedObject } from './SharedObject';
import { SharedRef } from './SharedRef';
type ViewConfig = {
validAttributes: Record<string, any>;
directEventTypes: Record<string, {
registrationName: string;
}>;
};
export interface ExpoProcessEnv {
NODE_ENV: string;
/** Used in `@expo/metro-runtime`. */
EXPO_DEV_SERVER_ORIGIN?: string;
EXPO_ROUTER_IMPORT_MODE?: string;
EXPO_ROUTER_ABS_APP_ROOT?: string;
EXPO_ROUTER_APP_ROOT?: string;
/** Maps to the `experiments.baseUrl` property in the project Expo config. This is injected by `babel-preset-expo` and supports automatic cache invalidation. */
EXPO_BASE_URL?: string;
/** Build-time representation of the `Platform.OS` value that the current JavaScript was bundled for. Does not support platform shaking wrapped require statements. */
EXPO_OS?: string;
/** Run-time representation of the `Platform.OS` for the top-most platform that's hosting the DOM component. Only defined in DOM components, undefined in standard runtimes and on web. */
EXPO_DOM_HOST_OS?: 'ios' | 'android' | (string & {});
[key: string]: any;
}
export interface ExpoProcess {
env: ExpoProcessEnv;
[key: string]: any;
}
/**
* Global object containing all the native bindings installed by Expo.
* This object is not available in projects without the `expo` package installed.
*/
declare namespace ExpoGlobal {
/** Host object that is used to access native Expo modules. */
export let modules: Record<string, any>;
export { EventEmitter };
export { SharedObject };
export { SharedRef };
export { NativeModule };
/**
* The version of the `expo-modules-core` package.
* @platform android
* @platform ios
*/
export const expoModulesCoreVersion: undefined | {
version: string;
major: number;
minor: number;
patch: number;
};
/**
* The path to the cache directory
* @platform android
* @platform ios
*/
export const cacheDir: undefined | string;
/**
* The path to the documents directory
* @platform android
* @platform ios
*/
export const documentsDir: undefined | string;
/**
* Generates a random UUID v4 string.
*/
export function uuidv4(): string;
/**
* Generates a UUID v5 string representation of the value in the specified namespace.
*/
export function uuidv5(name: string, namespace: string): string;
/**
* Returns a static view config of the native view with the given name
* or `null` if the view has not been registered.
*/
export function getViewConfig(moduleName: string, viewName?: string): ViewConfig | null;
/**
* Reloads the app.
*/
export function reloadAppAsync(reason: string): Promise<void>;
/**
* Installs Expo Modules inside the Reanimated UI worklet runtime.
* @platform android
*/
export function installOnUIRuntime(): void;
}
declare global {
namespace NodeJS {
interface ProcessEnv extends ExpoProcessEnv {
}
interface Process extends ExpoProcess {
env: ProcessEnv;
}
}
var expo: typeof ExpoGlobal;
var process: NodeJS.Process;
/**
* ExpoDomWebView is defined in `@expo/dom-webview` runtime.
*/
var ExpoDomWebView: ExpoDomWebView;
}
export type ExpoDomWebView = Record<string, unknown>;
export type { ExpoGlobal };
//# sourceMappingURL=global.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../src/ts-declarations/global.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,KAAK,UAAU,GAAG;IAChB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,gBAAgB,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAChE,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B,gKAAgK;IAChK,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,sKAAsK;IACtK,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,0LAA0L;IAC1L,gBAAgB,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAErD,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,cAAc,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;;GAGG;AACH,OAAO,WAAW,UAAU,CAAC;IAC3B,8DAA8D;IAC9D,MAAM,CAAC,IAAI,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAGxC,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,OAAO,EAAE,YAAY,EAAE,CAAC;IAIxB;;;;OAIG;IACH,MAAM,CAAC,MAAM,sBAAsB,EAC/B,SAAS,GACT;QACE,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IAEN;;;;OAIG;IACH,MAAM,CAAC,MAAM,QAAQ,EAAE,SAAS,GAAG,MAAM,CAAC;IAE1C;;;;OAIG;IACH,MAAM,CAAC,MAAM,YAAY,EAAE,SAAS,GAAG,MAAM,CAAC;IAI9C;;OAEG;IACH,MAAM,UAAU,MAAM,IAAI,MAAM,CAAC;IAEjC;;OAEG;IACH,MAAM,UAAU,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAEhE;;;OAGG;IACH,MAAM,UAAU,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI,CAAC;IAExF;;OAEG;IACH,MAAM,UAAU,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9D;;;OAGG;IACH,MAAM,UAAU,kBAAkB,IAAI,IAAI,CAAC;CAC5C;AAGD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM,CAAC;QACf,UAAiB,UAAW,SAAQ,cAAc;SAAG;QACrD,UAAiB,OAAQ,SAAQ,WAAW;YAC1C,GAAG,EAAE,UAAU,CAAC;SACjB;KACF;IAED,IAAI,IAAI,EAAE,OAAO,UAAU,CAAC;IAC5B,IAAI,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC;IAE5B;;OAEG;IACH,IAAI,cAAc,EAAE,cAAc,CAAC;CACpC;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACrD,YAAY,EAAE,UAAU,EAAE,CAAC"}

4
node_modules/expo-modules-core/build/uuid/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,4 @@
import { UUID } from './uuid.types';
declare const uuid: UUID;
export default uuid;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/uuid/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAgCrD,QAAA,MAAM,IAAI,EAAE,IAIX,CAAC;AACF,eAAe,IAAI,CAAC"}

View File

@@ -0,0 +1,4 @@
import { UUID } from './uuid.types';
declare const uuid: UUID;
export default uuid;
//# sourceMappingURL=index.web.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../src/uuid/index.web.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAsBrD,QAAA,MAAM,IAAI,EAAE,IAIX,CAAC;AAEF,eAAe,IAAI,CAAC"}

View File

@@ -0,0 +1,3 @@
declare function bytesToUuid(buf: number[], offset?: number): string;
export default bytesToUuid;
//# sourceMappingURL=bytesToUuid.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"bytesToUuid.d.ts","sourceRoot":"","sources":["../../../src/uuid/lib/bytesToUuid.ts"],"names":[],"mappings":"AASA,iBAAS,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,UA0BlD;AAED,eAAe,WAAW,CAAC"}

View File

@@ -0,0 +1,3 @@
declare function sha1(bytes: number[] | string): number[];
export default sha1;
//# sourceMappingURL=sha1.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"sha1.d.ts","sourceRoot":"","sources":["../../../src/uuid/lib/sha1.ts"],"names":[],"mappings":"AAuBA,iBAAS,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,YAoFrC;AAED,eAAe,IAAI,CAAC"}

View File

@@ -0,0 +1,7 @@
export default function (name: string, version: number, hashfunc: (bytes: number[] | string) => number[]): {
(value: number[] | string, namespace: number[] | string, buf?: number[], offset?: number): string;
name: string;
DNS: string;
URL: string;
};
//# sourceMappingURL=v35.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"v35.d.ts","sourceRoot":"","sources":["../../../src/uuid/lib/v35.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAC,OAAO,WACZ,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,KAAK,MAAM,EAAE;YAGvC,MAAM,EAAE,GAAG,MAAM,aACb,MAAM,EAAE,GAAG,MAAM,QACtB,MAAM,EAAE,WACL,MAAM,GACd,MAAM;;;;EAkCV"}

View File

@@ -0,0 +1,24 @@
/**
* Collection of utilities used for generating Universally Unique Identifiers.
*/
export type UUID = {
/**
* A UUID generated randomly.
*/
v4: () => string;
/**
* A UUID generated based on the `value` and `namespace` parameters, which always produces the same result for the same inputs.
*/
v5: (name: string, namespace: string | number[]) => string;
namespace: typeof Uuidv5Namespace;
};
/**
* Default namespaces for UUID v5 defined in RFC 4122
*/
export declare enum Uuidv5Namespace {
dns = "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
url = "6ba7b811-9dad-11d1-80b4-00c04fd430c8",
oid = "6ba7b812-9dad-11d1-80b4-00c04fd430c8",
x500 = "6ba7b814-9dad-11d1-80b4-00c04fd430c8"
}
//# sourceMappingURL=uuid.types.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"uuid.types.d.ts","sourceRoot":"","sources":["../../src/uuid/uuid.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG;IACjB;;OAEG;IACH,EAAE,EAAE,MAAM,MAAM,CAAC;IACjB;;OAEG;IACH,EAAE,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,MAAM,CAAC;IAC3D,SAAS,EAAE,OAAO,eAAe,CAAC;CACnC,CAAC;AAEF;;GAEG;AACH,oBAAY,eAAe;IAEzB,GAAG,yCAAyC;IAC5C,GAAG,yCAAyC;IAC5C,GAAG,yCAAyC;IAC5C,IAAI,yCAAyC;CAC9C"}

View File

@@ -0,0 +1,2 @@
export declare function installOnUIRuntime(): void;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/worklets/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,SASjC"}