/**
 * @license
 * Copyright 2022-2026 Greg Lauckhart <greg@lauckhart.com>
 * SPDX-License-Identifier: Apache-2.0
 */
import { Consumer } from "./consumer.js";
import { Producer } from "./producer.js";
/**
 * Writes lines truncated to a specific width.
 */
export declare class Truncator implements Consumer {
    #private;
    constructor(target: Consumer, options?: {
        addNewline?: boolean;
    });
    get state(): Consumer.State;
    write(...text: Producer.Sequence): void;
    close(): void;
}
//# sourceMappingURL=truncator.d.ts.map