/** * [WHO]: PlanFileManager class, getPlansDirectory(), getPlanFilePath(), getPlan(), getPlanSlug() * [FROM]: Depends on node:fs, node:path, node:os, node:crypto, proper-lockfile, core/extensions-host/types (EventBus) * [TO]: Consumed by plan extension tools, workflow prompts, permission gating * [HERE]: extensions/builtin/plan/plan-file-manager.ts - plan file path management and I/O */ import { type PlanSessionState, type PlanStateEntryData } from "./types.js"; import type { SessionEntry } from "../../../core/session/session-manager.js"; export declare function getPlanSessionState(bus: unknown, sessionId?: string, entries?: SessionEntry[]): PlanSessionState; export declare function hydratePlanSessionState(sessionState: PlanSessionState, sessionId: string, entries: SessionEntry[]): void; export declare function serializePlanSessionState(sessionState: PlanSessionState): PlanStateEntryData; export declare function generatePlanSlug(): string; export declare function getPlansDirectory(settingsPlansDir?: string, cwd?: string): string; export declare function resetPlansDirectoryCache(): void; export declare function getPlanSlug(bus: unknown): string; export declare function setPlanSlug(bus: unknown, slug: string): void; export declare function clearPlanSlug(bus: unknown): void; export declare function clearAllPlanSlugs(): void; export declare function getPlanFilePath(bus: unknown, agentId?: string): string; export declare function getPlan(bus: unknown, agentId?: string): string | null; export declare function writePlan(bus: unknown, content: string, agentId?: string): Promise; export declare function planExists(bus: unknown, agentId?: string): boolean; export declare function copyPlanForResume(sourceBus: unknown, targetBus: unknown): Promise; export declare function copyPlanForFork(sourceBus: unknown, targetBus: unknown): Promise; export declare function copyPlanFileToNewSlug(bus: unknown): Promise; export declare function copyPlanFile(sourcePath: string, targetPath: string): boolean;