import { type HelpTipContent } from './help-tip.component'; export interface UsageMeterProps { label: string; /** `null` while the usage source has not answered — "not yet metered". */ used: number | null; limit: number; unit?: string; /** True when the plan caps nothing here; the bar is omitted and the limit reads "Unlimited". */ unlimited?: boolean; /** * Optional help affordance beside the label. * * A meter is a number against a limit and says nothing about what happens * when the two meet — which for bandwidth is the whole question, and is * different on Free (the site pauses) than on a paid plan (the extra bills). */ help?: HelpTipContent; /** Where "Upgrade" points once the meter warns; the plans anchor by default. */ upgradeHref?: string; } /** The share of a limit at which a meter turns amber and offers the upgrade. */ export declare const USAGE_METER_WARNING_PCT = 80; /** A meter's bar color: the plan's own, amber once it nears the limit, red at it. */ export type UsageMeterTone = 'primary' | 'warning' | 'error'; /** * The tone a meter at `percent` of its limit is drawn in. * * Exported so a readout drawn somewhere other than this row warns at the same * point as every meter on the Billing page, rather than at a threshold of its * own. */ export declare function usageMeterTone(percent: number): UsageMeterTone; /** * One quota meter: used/limit progress with warning at ≥80%, error at the * cap, an "Upgrade" link once warning, "Unlimited" for uncapped plans, and * a "not yet metered" state for usage sources that have not answered. * * Shared (AGL-2939) so a plugin's own meter — the AI credits band — draws * beside the platform's on the same terms rather than as a lookalike. */ export declare function UsageMeter(props: UsageMeterProps): import("react").JSX.Element; export default UsageMeter;