import type { FileHandle } from "node:fs/promises";
import type { Writable } from "node:stream";
import type { Charset } from "./charset/charset.ts";
export declare type FixlenWriterColumn = {
    length: number;
    shift?: boolean;
    fill?: "left" | "right";
    filler?: string;
    type?: "zerofill" | "int-le" | "int-be" | "uint-le" | "uint-be" | "zoned" | "uzoned" | "packed" | "upacked";
};
export declare class FixlenWriter {
    private writer;
    private encoder;
    private ebcdic;
    private shift;
    private filler;
    private lineSeparator?;
    private columns;
    private lineLength;
    private bom;
    private fatal;
    private index;
    constructor(dest: WritableStream<Uint8Array> | FileHandle | Writable, config: {
        columns: FixlenWriterColumn[];
        charset?: Charset;
        bom?: boolean;
        shift?: boolean;
        filler?: string;
        lineSeparator?: string;
        fatal?: boolean;
    });
    write(record: unknown[], options?: {
        columns: FixlenWriterColumn[];
        shift?: boolean;
        filler?: string;
        lineSeparator?: string;
    }): Promise<void>;
    get count(): number;
    close(): Promise<void>;
}
//# sourceMappingURL=FixlenWriter.d.ts.map