import type { ProjectStateMetadata } from "./paths"; import type { OpenCodeState, SharedState } from "./state-types"; export type RuntimeOpenCodeState = Pick; export type PersistedOpenCodeState = Pick; export declare function createDefaultRuntimeState(): RuntimeOpenCodeState; export declare function createDefaultOpenCodeState(project?: ProjectStateMetadata): OpenCodeState; export declare function createDefaultSharedState(): SharedState; export declare function migrateOpenCodeState(input: unknown, project?: ProjectStateMetadata): OpenCodeState; export declare function mergeOpenCodeState(persisted: OpenCodeState, runtime: RuntimeOpenCodeState): OpenCodeState; export declare function extractRuntimeOpenCodeState(state: OpenCodeState): RuntimeOpenCodeState; export declare function serializeOpenCodeState(state: OpenCodeState, project?: ProjectStateMetadata): PersistedOpenCodeState; export declare function hasPersistedOpenCodeChanges(current: OpenCodeState, next: OpenCodeState): boolean; export declare function migrateSharedState(input: unknown): SharedState;