import { BasedDbQuery } from '../BasedDbQuery.js';
import { BasedQueryResponse } from '../BasedIterable.js';
import { OnData, OnError, OnClose } from './types.js';
export declare class SubStore {
    listeners: Map<OnData, OnError>;
    onClose: OnClose;
    response?: BasedQueryResponse;
    checksum?: number;
    len?: number;
    subscribe(q: BasedDbQuery): void;
    resubscribe(q: BasedDbQuery): void;
}
export declare const subscribe: (q: BasedDbQuery, onData: OnData, onError: OnError) => OnClose;
export * from './types.js';
