import type { InterviewRound, QuizOutcome, QuizUsage, SessionState } from "./types.js"; /** * Session state for pi-interview. * * Persisted via pi.appendEntry() so it survives session restores. * Tracks usage, skip patterns, and last interview context. */ export declare function emptyState(): SessionState; export declare function recordQuizCall(state: SessionState, usage: QuizUsage | undefined, outcome: QuizOutcome, turnId: string): SessionState; /** * Record question texts from a completed interview round. * Keeps last 15 questions to prevent repeats across rounds. */ export declare function recordQuestions(state: SessionState, questionTexts: string[]): SessionState; /** * Record decision summaries from a completed interview round. * Each decision = question text + selected options, giving the model * awareness of what was already decided this session. */ export declare function recordDecisions(state: SessionState, decisions: string[]): SessionState; /** * Record a structured interview round for full Q&A replay. * Keeps last 5 rounds — enough context without bloating state. */ export declare function recordInterviewRound(state: SessionState, rounds: InterviewRound[]): SessionState; /** * Should we back off from auto-quizzing? * After 3+ consecutive skips/cancels, pause auto mode for this session. */ export declare function shouldBackOff(state: SessionState): boolean; export declare function formatUsageStatus(state: SessionState): string | undefined; //# sourceMappingURL=state.d.ts.map