export declare const types: { LISTEN: string; INSERT: string; GET: string; ALL: string; COUNT: string; CLOSE: string; REMOVE: string; INITIALIZE: string; COLLECTION: string; COLLECTIONS: string; }; export declare type fieldType = 'number' | 'boolean' | 'string' | 'json'; export declare const fieldTypes: { NUMBER: string; BOOLEAN: string; STRING: string; JSON: string; }; export interface IInsertItem { [k: string]: any; id?: string; } export interface IGetItem { id: string; rev: string; } export interface IItem extends IGetItem { [s: string]: any; } export interface IQueryInput { id?: string[] | string; limit?: number | [number] | [number, number]; offset?: number; where?: [string, ...any[]] | undefined | null; select?: string[] | string; orderBy?: string[] | string; } export interface IQuery { limit?: number; offset?: number; where?: [string, ...any[]]; select?: string[]; orderBy?: string[]; } export interface IInsertInput { refetchResult?: boolean; update?: boolean; [s: string]: any; } export interface IInsert { refetchResult: boolean; update: boolean; new: string[]; existing: string[]; [s: string]: any; } export declare type IObserverCallback = (error: any, value: T, options?: any, collection?: string) => void; export declare type IUnlisten = () => void; export interface IObject { [key: string]: T; } export interface ICollection { name: string; index: IObject; fields: IObject; specialFields: IObject; plugins: string[]; } export interface ICollectionInput { name: string; index?: IObject | string[]; fields?: IObject | string[]; plugins?: string[]; specialFields?: IObject; } export interface ICollections extends IObject { } export interface IListenerOptions { collection?: string; query?: string | string[] | IQuery; } export interface IDebeUse { all(queryArgs?: string[] | IQueryInput): Promise; all(queryArgs?: string[] | IQueryInput, cb?: IObserverCallback): () => void; all(queryArgs?: string[] | IQueryInput, cb?: IObserverCallback): Promise | (() => void); count(queryArgs?: IQueryInput): Promise; count(queryArgs?: IQueryInput, cb?: IObserverCallback): () => void; count(queryArgs?: IQueryInput, cb?: IObserverCallback): Promise | (() => void); get(queryArgs?: IQueryInput | string): Promise; get(queryArgs?: IQueryInput | string, cb?: IObserverCallback): () => void; get(queryArgs?: IQueryInput | string, cb?: IObserverCallback): Promise | (() => void); remove(query: string | string[]): Promise; insert(value: (T & IInsertItem)[] | T & IInsertItem, options?: IInsertInput): Promise; }