export type CommandOutputStream = "stdout" | "stderr" | "mixed";
export interface CommandOutputEvent {
    readonly stream: CommandOutputStream;
    readonly text: string;
    readonly sequence: number;
    readonly cwd: string;
    readonly commandLineCount: number;
    readonly commandFilePath?: string;
}
export type CommandOutputSink = (event: CommandOutputEvent) => void;
export interface OutputEventCollector {
    readonly push: (stream: Exclude<CommandOutputStream, "mixed">, text: string) => void;
    readonly close: () => void;
}
export declare function createOutputEventCollector(input: {
    readonly cwd: string;
    readonly commandLineCount: number;
    readonly commandFilePath?: string;
    readonly onOutput?: CommandOutputSink;
}): OutputEventCollector;
//# sourceMappingURL=commandOutputEvents.d.ts.map