import DataSource from './data-source'; export declare class Watcher { private dataSource; private middleware; private actionListeners; private entryListeners; private cancellers; constructor(dataSource: DataSource); resolveEntity(entityName: string, resolver: () => string | Promise): void; /** * Watches for actions with the specified entry id and action label. * @param entryId Id of `Entry` to watch for. * @param actionKey Label of action to watch for. * @param listener Handler for when a match is found. */ watchAction(entryId: string, actionKey: string, listener: (data: any) => boolean | Promise): void; stop(): void; } export declare type WatchCancellation = () => void; export declare function watch(dataSource: DataSource, handler: (watcher: Watcher) => void): WatchCancellation; //# sourceMappingURL=watcher.d.ts.map