import * as SqlClient from 'effect/sql/SqlClient'; import * as RuntimeProvider from '@dxos/effect/RuntimeProvider'; import { SqliteStorageAdapter, type SqliteStorageCallbacks } from '../automerge/sqlite-storage-adapter.ts'; export type TestSqliteRuntime = { runtime: RuntimeProvider.RuntimeProvider; dispose: () => Promise; }; /** * Creates an in-memory (or file-based) SQLite runtime for tests. * Use filename = ':memory:' for ephemeral in-memory storage. * Use a file path for persistence across open/close cycles. */ export declare const createTestSqliteRuntime: (filename?: string) => TestSqliteRuntime; export type TestSqliteStorageAdapter = { adapter: SqliteStorageAdapter; dispose: () => Promise; }; /** * Opens a migrated {@link SqliteStorageAdapter} over a fresh SQLite runtime. * `dispose` closes the adapter and tears down the runtime. * * `callbacks` lets a test wait for a write to actually land — `save` no-ops once the adapter is * closed, so sleeping and hoping an auto-save fired first silently drops it. */ export declare const createTestSqliteStorageAdapter: (filename?: string, callbacks?: SqliteStorageCallbacks) => Promise; //# sourceMappingURL=sqlite-test-runtime.d.ts.map