export interface PrintAsPrefixOpts {
    separator?: string;
    fill?: ' ' | 0;
}
export interface PreparedText {
    /**
     * The width in terms of number of numbers (123 is 3 numbers wide).
     * Will be -1 if prepareText wasn't configured with a maximum width.
     */
    numberWidth: number;
    /**
     * The width in terms of characters/bytes to print on screen.
     * Will be -1 if prepareText wasn't configured with a maximum width.
     */
    charWidth: number;
    /**
     * A pure whitespace-only line of length charWidth
     */
    emptyLine: string;
    /**
     * Print a number and return the array of lines.
     *
     * If the number is not provided (or is undefined), pure whitespace is
     * returned.
     *
     * @param num The number to print.
     */
    print(num?: number, fill?: ' ' | 0): Array<string>;
    printAsPrefix(num: number, mainLines: Array<string>, opts?: PrintAsPrefixOpts): Array<string>;
}
export type PrepareTextArg = {
    maxNumber: number;
    maxWidth?: never;
} | {
    maxNumber?: never;
    maxWidth: number;
};
export declare function prepareText(arg?: PrepareTextArg): PreparedText;
