import type { StateStore } from '../core/store.ts'; export type SqliteStoreOptions = { /** File path, or `':memory:'` for a durable-shaped store with no file. */ readonly path?: string; readonly retentionHours?: number; /** Table name, in case the host already owns the database. */ readonly table?: string; }; export type SqliteStore = StateStore & { /** Delete expired rows now. Returns how many were removed. */ sweep(now: number): number; /** Retained entities, expired rows included until swept. */ size(): number; close(): void; }; /** * Open (or create) a SQLite-backed store. * * The state is stored as one JSON column rather than as typed columns. The window * (D36) is a variable-length array and the trust fields are floats whose exact * values matter (the conformance kit checks precision), normalising that into * rows would buy queryability that D1 says nothing needs, since the entity key is * opaque and there is nothing to query by. */ export declare function sqliteStore(options?: SqliteStoreOptions): SqliteStore; //# sourceMappingURL=sqlite.d.ts.map