import type { WorkingMemorySnapshot } from '@principles/core/prompt-builder'; export { extractVersion, extractDate, extractSummary, parseWorkingMemorySection, workingMemoryToInjection, extractMilestones, validateCurrentFocus, mergeWorkingMemory, compressFocusContent, } from '@principles/core/prompt-builder'; export type { FileArtifact, WorkingMemorySnapshot, } from '@principles/core/prompt-builder'; interface CompressionConfig { lineThreshold: number; sizeThreshold: number; intervalMs: number; keepCompletedTasks: number; maxWorkingMemoryArtifacts: number; } export declare function getHistoryDir(focusPath: string): string; export declare function backupToHistory(focusPath: string, content: string): string | null; export declare function cleanupHistory(focusPath: string, maxFiles?: number): void; export declare function getHistoryVersions(focusPath: string, count?: number): Promise; export declare function compressFocus(focusPath: string, newContent: string): { backupPath: string | null; cleanedCount: number; }; export declare function extractWorkingMemory(messages: { role?: string; content?: string | unknown[]; }[], workspaceDir?: string): WorkingMemorySnapshot; export declare function cleanupStaleInfo(content: string, workspaceDir?: string, config?: CompressionConfig): string; export declare function autoCompressFocus(focusPath: string, workspaceDir?: string, stateDir?: string): { compressed: boolean; oldLines: number; newLines: number; milestonesArchived: boolean; backupPath: string | null; reason: string; newContent?: string; }; export declare function needsAutoCompression(focusPath: string, stateDir?: string): boolean; export declare function archiveMilestonesToDaily(workspaceDir: string, milestones: { completedTasks: string[]; fileArtifacts: string[]; }, version: string): string | null; export declare function recoverFromTemplate(focusPath: string, extensionRoot: string): { success: boolean; error?: string; templatePath?: string; }; export declare function safeReadCurrentFocus(focusPath: string, extensionRoot: string, logger?: { warn?: (msg: string) => void; info?: (msg: string) => void; }): { content: string; recovered: boolean; validationErrors: string[]; };