import type { AgentLoopLifecycleHooks, AgentMessage } from "@threadwell/agent-core";
import { type ContinuityCheckpoint, type ContinuityState } from "./continuity-files.js";
import { type ContinuityIntent } from "./continuity-intent-router.js";
export interface ContinuityManagerOptions {
    cwd: string;
    onCheckpoint?: (checkpoint: ContinuityCheckpoint) => void | Promise<void>;
}
export interface ContinuityOperationResult {
    intent: ContinuityIntent;
    handled: boolean;
    context?: string;
}
export declare class ContinuityManager {
    private readonly options;
    private writeQueue;
    private cachedState;
    constructor(options: ContinuityManagerOptions);
    loadState(): Promise<ContinuityState>;
    renderContext(): Promise<string | undefined>;
    handleUserMessage(text: string): Promise<ContinuityOperationResult>;
    createLifecycleHooks(): AgentLoopLifecycleHooks;
    private checkpointAfterTurn;
    private checkpointBeforeLoopEnd;
    private enqueueCheckpoint;
    private enqueueStateUpdate;
}
export declare function createContinuityContextMessage(text: string): AgentMessage;
//# sourceMappingURL=continuity-manager.d.ts.map