import { BaseAgent } from "../agents/base/base";
export interface FsSyncOptions {
    taskId: string;
    prompt: string;
    agentName?: string;
}
export declare class AgentSyncFs {
    private static sharedCleanupInterval;
    private static sharedBasePath;
    private static cleanupStarted;
    private taskId;
    private basePath;
    private taskPath;
    private eventHandlersSetup;
    private watcher;
    private lastInputContent;
    private finalizationPromise;
    private agent;
    private threadUpdateHandler;
    private doneHandler;
    private pendingThreadUpdatePromise;
    constructor();
    createTask(options: FsSyncOptions): Promise<string>;
    private writeStatus;
    private writeInput;
    private writeMetadata;
    private updateMetadata;
    private readStatus;
    private readInput;
    private checkForChanges;
    private waitForResume;
    private setupFileWatcher;
    setupAgentSync(agent: BaseAgent, taskId?: string): Promise<void>;
    private setupEventHandlers;
    waitForFinalization(): Promise<void>;
    cleanup(): Promise<void>;
    private static cleanupOldTasks;
    private static startSharedCleanupProcess;
    stopCleanup(): void;
    reset(): void;
}
