import type { LixEngine } from "../../engine/boot.js";
/**
 * Memoize the stale flag for a given SQLite connection.
 */
export declare function setStaleStateCacheMemoV2(args: {
    engine: Pick<LixEngine, "executeSync">;
    value: boolean;
}): void;
/**
 * Remove the cached stale flag so the next read re-queries SQLite.
 */
export declare function invalidateStaleStateCacheMemoV2(args: {
    engine: Pick<LixEngine, "executeSync">;
}): void;
/**
 * Determine whether the state cache needs to be repopulated.
 *
 * The result is cached per SQLite connection and automatically invalidated
 * whenever the `lix_state_cache_stale` key changes via `onStateCommit`.
 *
 * @example
 * const stale = isStaleStateCacheV2({ engine: lix.engine! });
 */
export declare function isStaleStateCacheV2(args: {
    engine: Pick<LixEngine, "executeSync" | "hooks">;
}): boolean;
//# sourceMappingURL=is-stale-state-cache.d.ts.map