import { type ChildProcess } from "node:child_process"; export interface RotatingTextSinkOptions { path: string; max_bytes: number; backups?: number; durable?: boolean; } export interface ProcessLogDestinationOptions { coord_root: string; project_root?: string; family_id: string; filename: string; legacy_path: string; env?: Readonly>; } export interface RotatingProcessOptions { path: string; command: string; arguments?: string[]; env?: Readonly>; max_bytes?: number; backups?: number; } /** Resolve one catalog-owned partition path, with an explicit legacy rollback. */ export declare function processLogDestination(options: ProcessLogDestinationOptions): string; export declare class RotatingTextSink { #private; constructor(options: RotatingTextSinkOptions); append(text: string): void; startGeneration(): void; flush(): void; close(): void; } /** Spawn a detached-compatible Bun wrapper that continuously rotates child stdout/stderr. */ export declare function spawnRotatingProcess(options: RotatingProcessOptions): ChildProcess; /** Run a short process synchronously while keeping its captured output bounded. */ export declare function runRotatingProcessSync(options: RotatingProcessOptions): number | null; //# sourceMappingURL=process-log.d.ts.map