export declare function getLogCapturePath(jobId: string): string; export declare function getAiPromptPath(jobId: string): string; export declare function shouldCaptureLogs(): boolean; export declare function startCaptureForJob(jobId: string): Promise; export declare function appendCapturedLine(jobId: string, line: string): Promise; export interface CleanupOptions { keepAiPromptFile: boolean; } export declare function cleanupCapturedJobFiles(jobId: string, opts: CleanupOptions): Promise; /** * Register process-level cleanup handlers. Returns a function that removes * the handlers (call from request.ts after the build flow finishes normally). */ export declare function registerCleanupHandlers(jobId: string, getKeepPromptFile: () => boolean): () => void;