import type { QuestionAnswer, QuestionAnswerEntry, QuestionInput, QuestionRecord, QuestionRendererState, QuestionStatus } from './types.js'; export declare function getQuestionStateDir(cwd: string, sessionId?: string): string; export declare function getQuestionRecordPath(cwd: string, questionId: string, sessionId?: string): string; export declare function writeQuestionRecord(recordPath: string, record: QuestionRecord): Promise; export declare function readQuestionRecord(recordPath: string): Promise; export declare function createQuestionRecord(cwd: string, input: QuestionInput, sessionId?: string, now?: Date): Promise<{ recordPath: string; record: QuestionRecord; }>; export declare function updateQuestionRecord(recordPath: string, updater: (record: QuestionRecord) => QuestionRecord): Promise; export declare function markQuestionPrompting(recordPath: string, renderer: QuestionRendererState): Promise; export declare function markQuestionAnswered(recordPath: string, answerOrAnswers: QuestionAnswer | QuestionAnswerEntry[]): Promise; export declare function markQuestionTerminalError(recordPath: string, status: Extract, code: string, message: string): Promise; export declare function isTerminalQuestionStatus(status: QuestionStatus): boolean; export declare function waitForQuestionTerminalState(recordPath: string, options?: { pollIntervalMs?: number; timeoutMs?: number; rendererAlive?: (record: QuestionRecord) => boolean; rendererDeathMessage?: (record: QuestionRecord) => string; }): Promise; //# sourceMappingURL=state.d.ts.map