import { Kysely } from "kysely"; import type { LixInternalDatabaseSchema } from "../database/schema.js"; /** * Cold Kysely instance wired to the SQLite dialect for compiling queries against * the internal schema without holding a live database connection. * * Pair this with `engine.executeSync` when you need synchronous access to * internal views: * * @example * ```ts * const [config] = engine.executeSync( * internalQueryBuilder * .selectFrom("lix_internal_state_vtable") * .where("entity_id", "=", "lix_deterministic_mode") * .where("schema_key", "=", "lix_key_value") * .where("snapshot_content", "is not", null) * .select( * sql`json_extract(snapshot_content, '$.value.nano_id')`.as("nano_id") * ) * .compile() * ).rows; * ``` */ export declare const internalQueryBuilder: Kysely; //# sourceMappingURL=internal-query-builder.d.ts.map