import type { TraceCallback, TraceLine } from "./types.js";
export type TraceSink = {
    writeLine(line: TraceLine): Promise<void> | void;
    close?(): Promise<void> | void;
};
export declare class FileSink implements TraceSink {
    private stream;
    constructor(filePath: string);
    createDirIfNotExists(dirPath: string): void;
    writeLine(line: TraceLine): Promise<void>;
    close(): Promise<void>;
}
export declare class CallbackSink implements TraceSink {
    private callback;
    private runId;
    constructor(runId: string, callback: TraceCallback);
    writeLine(line: TraceLine): Promise<void>;
}
