import type { WatchEventCallbacks } from './definitions'; import type { WatchPayload, QueuedFile } from '../native-module'; export type UnsubscribeFn = () => void; declare function addListener(event: 'reachability', cb: WatchEventCallbacks['reachability']): UnsubscribeFn; declare function addListener(event: 'file', cb: WatchEventCallbacks['file']): UnsubscribeFn; declare function addListener(event: 'application-context', cb: WatchEventCallbacks['application-context']): UnsubscribeFn; declare function addListener(event: 'user-info', cb: WatchEventCallbacks['user-info']): UnsubscribeFn; declare function addListener(event: 'file-received', cb: WatchEventCallbacks['file-received']): UnsubscribeFn; declare function addListener(event: 'message', cb: WatchEventCallbacks['message']): UnsubscribeFn; declare function addListener(event: 'paired', cb: WatchEventCallbacks['paired']): UnsubscribeFn; declare function addListener(event: 'installed', cb: WatchEventCallbacks['installed']): UnsubscribeFn; declare function addListener(event: 'application-context-error', cb: WatchEventCallbacks['application-context-error']): UnsubscribeFn; declare function addListener(event: 'application-context-received-error', cb: WatchEventCallbacks['application-context-received-error']): UnsubscribeFn; declare function addListener(event: 'activation-error', cb: WatchEventCallbacks['activation-error']): UnsubscribeFn; declare function addListener(event: 'session-became-inactive', cb: WatchEventCallbacks['session-became-inactive']): UnsubscribeFn; declare function addListener(event: 'session-did-deactivate', cb: WatchEventCallbacks['session-did-deactivate']): UnsubscribeFn; declare function addListener(event: 'user-info-error', cb: WatchEventCallbacks['user-info-error']): UnsubscribeFn; declare function addListener(event: 'file-received-error', cb: WatchEventCallbacks['file-received-error']): UnsubscribeFn; declare function once(event: 'reachability', cb: WatchEventCallbacks['reachability']): UnsubscribeFn; declare function once(event: 'reachability'): Promise[0]>; declare function once(event: 'file', cb: WatchEventCallbacks['file']): UnsubscribeFn; declare function once(event: 'file'): Promise[0]>; declare function once(event: 'application-context', cb: WatchEventCallbacks['application-context']): UnsubscribeFn; declare function once(event: 'application-context'): Promise['application-context']>[0]>; declare function once(event: 'user-info', cb: WatchEventCallbacks['user-info']): UnsubscribeFn; declare function once(event: 'user-info'): Promise['user-info']>[0]>; declare function once(event: 'file-received', cb: WatchEventCallbacks['file-received']): UnsubscribeFn; declare function once(event: 'file-received'): Promise[0]>; declare function once(event: 'message', cb: WatchEventCallbacks['message']): UnsubscribeFn; declare function once(event: 'message'): Promise['message']>>; declare function once(event: 'paired', cb: WatchEventCallbacks['paired']): UnsubscribeFn; declare function once(event: 'paired'): Promise[0]>; declare function once(event: 'installed', cb: WatchEventCallbacks['installed']): UnsubscribeFn; declare function once(event: 'installed'): Promise[0]>; declare function once(event: 'application-context-error', cb: WatchEventCallbacks['application-context-error']): UnsubscribeFn; declare function once(event: 'application-context-error'): Promise['application-context-error']>[0]>; declare function once(event: 'application-context-received-error', cb: WatchEventCallbacks['application-context-received-error']): UnsubscribeFn; declare function once(event: 'application-context-received-error'): Promise['application-context-received-error']>[0]>; declare function once(event: 'activation-error', cb: WatchEventCallbacks['activation-error']): UnsubscribeFn; declare function once(event: 'activation-error'): Promise['activation-error']>[0]>; declare function once(event: 'session-became-inactive', cb: WatchEventCallbacks['session-became-inactive']): UnsubscribeFn; declare function once(event: 'session-became-inactive'): Promise['session-became-inactive']>[0]>; declare function once(event: 'session-did-deactivate', cb: WatchEventCallbacks['session-did-deactivate']): UnsubscribeFn; declare function once(event: 'session-did-deactivate'): Promise['session-did-deactivate']>[0]>; declare function once(event: 'user-info-error', cb: WatchEventCallbacks['user-info-error']): UnsubscribeFn; declare function once(event: 'user-info-error'): Promise['user-info-error']>[0]>; declare function once(event: 'file-received-error', cb: WatchEventCallbacks['file-received-error']): UnsubscribeFn; declare function once(event: 'file-received-error'): Promise['file-received-error']>[0]>; declare const watchEvents: { addListener: typeof addListener; on: typeof addListener; once: typeof once; }; export default watchEvents; //# sourceMappingURL=index.d.ts.map