/** Defines a unit range for byte-to-human-readable conversion. */
interface UnitEntry {
    from: number;
    to: number;
    unit: string;
    long: string;
}
interface ByteSizeOptions {
    units?: string;
    precision?: number;
    locale?: string | string[];
    toStringFn?: () => string;
    customUnits?: Record<string, UnitEntry[]>;
}
interface ByteSizeResult {
    value: string;
    unit: string;
    long: string;
    toString(): string;
}
declare function byteSize(bytes: number, options?: ByteSizeOptions): ByteSizeResult;
declare namespace byteSize {
    var defaultOptions: (options: ByteSizeOptions) => void;
}
export default byteSize;
