import Database from "better-sqlite3";
type SqliteDatabase = InstanceType<typeof Database>;
/**
 * Canonical kit planning SQLite schema + migrations for workspace-kit.db (task store, CAE, workspace status, etc.).
 * Bump {@link KIT_SQLITE_USER_VERSION} and extend {@link migrateKitSqliteSchema} only in this file — the stable
 * barrel for most imports remains `workspace-kit-sqlite.ts` (re-exports here).
 */
/** Bump and add a migration step in `migrateKitSqliteSchema` when DDL changes. Exposed for doctor / list-module-states. */
export declare const KIT_SQLITE_USER_VERSION = 29;
export declare const TASK_ENGINE_TASKS_TABLE = "task_engine_tasks";
export declare const TASK_ENGINE_DEPENDENCIES_TABLE = "task_engine_dependencies";
export declare const TASK_ENGINE_TRANSITION_LOG_TABLE = "task_engine_transition_log";
export declare const TASK_ENGINE_MUTATION_LOG_TABLE = "task_engine_mutation_log";
/**
 * Shared SQLite setup for workspace-kit.db: pragmas, centralized user_version migrations.
 * Call after `new Database(path)` for every open (read/write).
 */
export declare function prepareKitSqliteDatabase(db: SqliteDatabase): void;
/** True when relational task rows + envelope columns are present (post v2 migration open). */
export declare function kitSqliteHasRelationalTaskDdl(db: SqliteDatabase): boolean;
/** Read-only pragma user_version for diagnostics (doctor summary, list-module-states). */
export declare function readKitSqliteUserVersion(dbAbsPath: string): number;
export {};
