/**
 * @fileoverview Embedded-SQLite implementation of {@link MirrorStore}. Owns the
 * primary table, optional FTS5 index, the `mirror_sync_state` row, schema
 * versioning + migration runner, generic flat queries, and the raw-handle
 * escape hatch. Lazy-opens on first use (memoized) and is then backed by
 * synchronous driver calls.
 * @module services/mirror/sqlite/sqliteMirrorStore
 */
import type { Migration, MirrorStore } from '../types.js';
import { type SchemaSpec } from './schema.js';
/** Configuration for {@link sqliteMirrorStore}. */
export interface SqliteMirrorStoreSpec extends SchemaSpec {
    /** `PRAGMA busy_timeout` in ms. Default 5000. */
    busyTimeoutMs?: number;
    /** Migrations applied in order when the stored version is lower than `version`. */
    migrations?: Migration[];
    /** Filesystem path to the SQLite database (created if absent). */
    path: string;
    /** Current schema version. Default 1. */
    version?: number;
}
/**
 * Create a SQLite-backed {@link MirrorStore} from a declarative spec. The store
 * is not opened until the first method call.
 */
export declare function sqliteMirrorStore(spec: SqliteMirrorStoreSpec): MirrorStore;
//# sourceMappingURL=sqliteMirrorStore.d.ts.map