import { IItem, IListenerOptions } from './types'; import { Debe } from './debe'; export declare type listenTypes = 'get' | 'count' | 'all' | 'insert' | string; export declare type actionTypes = 'get' | 'count' | 'all' | 'insert' | 'remove' | string; export declare abstract class DebeDispatcher { db: Debe; abstract close(): Promise; abstract initialize(): Promise; abstract run(action: actionTypes, collection: string, payload?: any, options?: any): Promise; abstract listen(action: listenTypes, callback: (error: any, value: T) => void, options: IListenerOptions): () => void; }