/**
 * This file is part of the NocoBase (R) project.
 * Copyright (c) 2020-2024 NocoBase Co., Ltd.
 * Authors: NocoBase Team.
 *
 * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
 * For more information, please refer to: https://www.nocobase.com/agreement.
 */
import React from 'react';
export interface FileSizeInputProps {
    value?: number;
    onChange?: (value?: number) => void;
    disabled?: boolean;
    /** Minimum byte size. Empty / below-min input snaps to this on blur. Defaults to 1. */
    min?: number;
    /** Maximum byte size. Defaults to `Number.POSITIVE_INFINITY`. */
    max?: number;
    /** Default byte size used to derive the initial unit shown when the field is empty. Defaults to 20 MB. */
    defaultValue?: number;
}
/**
 * Byte-valued size input paired with a unit selector (Byte / KB / MB / GB).
 * The persisted value is always normalized to bytes; the displayed number is
 * derived from the picked unit. Useful for fields like file-size limits or
 * memory quotas where the natural input unit varies by magnitude.
 */
export declare function FileSizeInput(props: FileSizeInputProps): React.JSX.Element;
