export interface KVStorage {
    get(key: string): Promise<Uint8Array | null> | Uint8Array | null;
    put(key: string, value: Uint8Array): Promise<void> | void;
    delete(key: string): Promise<boolean> | boolean;
}
export interface SqliteActorOptions {
    pageSize?: number;
    wasmModule?: WebAssembly.Module;
    wasmBinary?: Uint8Array;
}
export declare class SqliteActor {
    private kv;
    private pageSize;
    private wasm;
    private dbPtr;
    private maxPageId;
    private pageCache;
    static create(kv: KVStorage, options?: SqliteActorOptions): Promise<SqliteActor>;
    private constructor();
    private init;
    execute(sql: string): void;
    query<T = any>(sql: string): T[];
    private _vfsFileSize;
    private _vfsRead;
    private _vfsWrite;
    close(): void;
}
