import type Database from "better-sqlite3";
export declare const PLUGIN_KIT_MIN_USER_VERSION = 8;
export declare function assertPluginKitSchema(dbPathAbs: string): {
    ok: true;
} | {
    ok: false;
    message: string;
};
export declare function ensurePluginDdl(db: Database.Database): void;
export type PluginStateRow = {
    pluginName: string;
    enabled: boolean;
    rootRelativePath: string;
    installedVia: "scan" | "copy-install";
    updatedAt: string;
};
export declare function listPluginState(db: Database.Database): PluginStateRow[];
export declare function getPluginState(db: Database.Database, pluginName: string): PluginStateRow | undefined;
/** Effective enabled when absent from DB defaults to true (discovered plugins). */
export declare function isPluginEnabledInDb(db: Database.Database, pluginName: string): boolean;
export declare function upsertPluginState(db: Database.Database, row: {
    pluginName: string;
    enabled: boolean;
    rootRelativePath: string;
    installedVia: "scan" | "copy-install";
    updatedAt: string;
}): void;
