/** * Edit session manager for handling temporary file creation, * editor invocation, and cleanup. */ export type EditFormat = "yaml" | "json"; export interface EditSessionOptions { format: EditFormat; editor: string; } /** * Creates a temporary file for editing. */ export declare function createTempFile(content: string, format: EditFormat): string; /** * Opens the editor and waits for it to exit. */ export declare function openEditor(editor: string, filePath: string): number; /** * Reads content from the temporary file. */ export declare function readTempFile(filePath: string): string; /** * Writes content to an existing temporary file. */ export declare function writeTempFile(filePath: string, content: string): void; /** * Deletes the temporary file. */ export declare function deleteTempFile(filePath: string): void; //# sourceMappingURL=edit-session.d.ts.map