import type { WatchPayload } from '../native-module'; import { FileTransferEventType } from '../native-module'; import type { FileTransfer } from '../files'; export interface FileTransferEvent extends FileTransfer { type: FileTransferEventType; } export type WatchMessageCallback = (payload: MessageFromWatch & { id?: string; }, replyHandler: ((resp: MessageToWatch) => void) | null) => void; export interface WatchEventCallbacks

{ 'activation-error': (payload: P) => void; 'application-context': (payload: P) => void; 'application-context-error': (payload: P) => void; 'application-context-received-error': (payload: P) => void; 'file': (event: FileTransferEvent) => void; 'file-received': (payload: P[]) => void; 'file-received-error': (payload: P[]) => void; 'installed': (installed: boolean) => void; 'message': WatchMessageCallback; 'paired': (paired: boolean) => void; 'reachability': (reachable: boolean) => void; 'session-became-inactive': (payload: P) => void; 'session-did-deactivate': (payload: P) => void; 'user-info': (payload: P[]) => void; 'user-info-error': (payload: P) => void; } export type WatchEvent = keyof WatchEventCallbacks; //# sourceMappingURL=definitions.d.ts.map