/** * Statistics from cleanup operation. */ export interface CleanupStats { tempFilesRemoved: number; backupFilesRemoved: number; errors: number; } /** * Clean up orphaned temporary and old backup files from specified directories. * * This should be called on agent startup to clean up files left behind by * crashed deployments. It removes: * - Temp files matching pattern .{name}.{pid}.tmp * - Backup files (*.bak) older than 24 hours * * @param directories - List of directories to scan for orphaned files * @returns Statistics about the cleanup operation */ export declare function cleanupOrphanedFiles(directories: string[]): CleanupStats; /** * Extract unique directories from certificate and secret target configurations. * * @param certTargets - Array of certificate targets with output paths * @param secretTargets - Array of secret targets with file paths * @returns Array of unique directory paths */ export declare function extractTargetDirectories(certTargets?: { outputs?: Record; }[], secretTargets?: { output?: string; filePath?: string; }[]): string[]; //# sourceMappingURL=startup-cleanup.d.ts.map