export declare abstract class ResultBuffer<T> {
    protected readonly params: {
        onFlush: (type: T, text: string) => void;
        onTypeChange: (type: T) => void;
        onPendingFile: (filePath: string) => void;
        onFlushFile: (filePath: string, text: string) => void;
    };
    constructor(params: {
        onFlush: (type: T, text: string) => void;
        onTypeChange: (type: T) => void;
        onPendingFile: (filePath: string) => void;
        onFlushFile: (filePath: string, text: string) => void;
    });
    abstract add(text: string): void;
    abstract maybeFlush(force?: boolean): void;
}
//# sourceMappingURL=shared.d.ts.map