import { StrictSchema } from '@based/schema';
import { BasedDbQuery } from './client/query/BasedDbQuery.js';
import { OnError } from './client/query/subscription/types.js';
import { DbServer } from './server/index.js';
export declare const getDefaultHooks: (server: DbServer, subInterval?: number) => {
    subscribe(q: BasedDbQuery, onData: (res: Uint8Array) => void, onError: OnError): () => void;
    setSchema(schema: StrictSchema, fromStart: boolean): Promise<StrictSchema & {
        lastId: number;
        hash?: number;
    }>;
    flushModify(buf: Uint8Array): Promise<{
        offsets: Record<number, number>;
        dbWriteTime: number;
    }>;
    getQueryBuf(buf: Uint8Array): Promise<Uint8Array>;
};
