import { z } from "zod"; /** * Cross-session state for Cortex: which workspace is active, the * state-file schema version, and any runtime bookkeeping that needs * to survive between CLI invocations. Stored at * `~/.cortex/state.json` (overridable via `PRZM_CORTEX_STATE_PATH`). */ export declare const stateSchema: z.ZodObject<{ version: z.ZodDefault>; activeWorkspace: z.ZodOptional; }, "strip", z.ZodTypeAny, { version: 1; activeWorkspace?: string | undefined; }, { version?: 1 | undefined; activeWorkspace?: string | undefined; }>; export type CortexState = z.infer; export declare function stateFilePath(): string; /** * SQLite database path for the dashboard widget cache (ADR-019). Lives * as a sibling of state.json so a single env override (PRZM_CORTEX_HOME) or * PRZM_CORTEX_STATE_PATH directory can move the entire user-state bundle. * Override directly via PRZM_CORTEX_DASHBOARD_CACHE_PATH for tests/dev. */ export declare function dashboardCachePath(): string; export declare function readState(): Promise; export declare function writeState(state: CortexState): Promise; /** * Update one field without requiring the caller to read the full * state first. Preserves any keys added by future versions of * Cortex that this CLI doesn't know about. */ export declare function updateState(patch: Partial): Promise; //# sourceMappingURL=state.d.ts.map