import { type SelectQueryBuilder } from "kysely";
import { CACHE_COLUMNS } from "./cache-columns.js";
declare const SNAPSHOT_COLUMN: "snapshot_content";
type MaterializedCacheColumn = (typeof CACHE_COLUMNS)[number];
type VirtualColumn = typeof SNAPSHOT_COLUMN;
type StateCacheColumn = MaterializedCacheColumn | VirtualColumn;
export type StateCacheRow = Record<StateCacheColumn, unknown>;
/**
 * Returns a Kysely query builder routed to the materialized table for the
 * provided schema key. Pass `undefined` to opt into a no-op SELECT (useful when
 * the physical table might not exist yet). Includes a `snapshot_content` virtual
 * column to maintain compatibility with cache v1 consumers.
 *
 * @example
 * const rows = await selectFromStateCacheV2("lix_commit", "1.0").execute();
 */
export declare function selectFromStateCacheV2(schemaKey?: string, schemaVersion?: string): SelectQueryBuilder<any, string, StateCacheRow>;
export {};
//# sourceMappingURL=select-from-state-cache.d.ts.map