/**
 * Computations related to the data like size.
 */
export declare class DataCalculator {
    /**
     * Computes size in the nearest units
     */
    static bytesToSize(bytes: number, decimals?: number): string;
    /**
     * Calculates size of the string
     * @param str A string to compute size from.
     * @returns The size of the string.
     */
    static stringSize(str: string): number;
    /**
     * @param data The size of the form data
     * @returns The size of the form data
     */
    static formDataSize(data: FormData): Promise<number>;
    /**
     * Computes size of the payload.
     *
     * @param payload The payload to compute te size for
     * @returns The size of the payload
     */
    static payloadSize(payload: unknown): Promise<number>;
}
//# sourceMappingURL=DataCalculator.d.ts.map