import type { RunnerLogChunk } from "../types.js";
export type TuiLogLineKind = "stdout" | "stderr" | "meta";
export interface TuiLogLine {
    kind: TuiLogLineKind;
    text: string;
}
export interface TuiLogStoreOptions {
    maxLinesPerStep?: number;
}
export declare class TuiLogStore {
    private readonly maxLinesPerStep;
    private readonly buckets;
    private readonly partials;
    constructor(options?: TuiLogStoreOptions);
    appendChunk(log: RunnerLogChunk): void;
    appendMeta(stepKey: string | null | undefined, text: string): void;
    flushPartialLines(): void;
    tail(stepKey: string | null | undefined, count: number): TuiLogLine[];
    lineCount(stepKey: string | null | undefined): number;
    private bucketFor;
    private pushLine;
}
