/** * Session state file parsing utilities. * Parses markdown files with YAML frontmatter for session state. */ import type { SessionState, SessionFile } from './types'; /** * Default session state values. */ export declare const DEFAULT_SESSION_STATE: SessionState; /** * Parse YAML frontmatter from a string. * Expects format: * ``` * --- * key: value * --- * content * ``` */ export declare function parseYamlFrontmatter(content: string): { frontmatter: Record; body: string; }; /** * Parse session state from YAML frontmatter values. */ export declare function parseSessionState(frontmatter: Record): SessionState; /** * Read and parse a session state file. */ export declare function readSessionFile(filePath: string): Promise; /** * Check if a session state file exists. */ export declare function sessionFileExists(filePath: string): Promise; /** * Validate session state values. * Throws SessionError if validation fails. */ export declare function validateSessionState(state: SessionState): void; /** * Get the state file path for a session. */ export declare function getSessionFilePath(stateDir: string, sessionId: string): string; //# sourceMappingURL=parse.d.ts.map