import React from 'react'; export type CounterProps = { /** * CSS class names that can be appended to the component. Use this to position the counter * within its parent; the counter owns its own color treatment. */ className?: string; /** * The current count (the numerator), e.g., the characters entered so far or the progress made. */ count: number; /** * What the count is measured against (the denominator), e.g., the characters allowed. When * `count` exceeds this, the count takes on the critical treatment. */ total: number; /** * How the count is written out. `"fraction"` reads as `"3 / 10"`, for counts of discrete * things. `"percentage"` reads as `"30%"`, rounded to a whole number, for a share of a whole; * it requires `total` to be greater than zero. * * **Default is `"fraction"`**. */ variant?: 'fraction' | 'percentage'; } & Omit, 'children'>; /** * An internal count of a current value against its total, written either as a fraction * (`"3 / 10"`) or as a percentage (`"30%"`). * * This is shared by the components that show a counting construction, so the construction and * its error treatment stay consistent: the fields that limit text length (`InputField`, * `TextareaField`) use the fraction variant, and `ProgressBar` uses the percentage variant. It * is deliberately not exported from the package: it carries no semantics of its own and is only * meaningful next to the control it counts. * * Example usage: * * ``` * * ``` */ export declare const Counter: { ({ className, count, total, variant, ...other }: CounterProps): React.JSX.Element; displayName: string; };