import { type ReactNode } from 'react'; export interface CopyFieldProps { label: string; value: string; helperText?: ReactNode; /** Called once the value is on the clipboard, e.g. to show a snackbar. */ onCopied?: () => void; /** Called when the browser refused the clipboard. */ onCopyFailed?: (error: unknown) => void; /** The copy button's accessible name; `Copy {label}` by default. */ copyLabel?: string; size?: 'small' | 'medium'; fullWidth?: boolean; } /** * A value a reader copies somewhere else — a feed address, an API key's * public half, a webhook URL — shown read-only with a copy button inside the * field (AGL-3637). Focusing the field selects the whole value, so copying by * hand works too. */ export declare function CopyField(props: CopyFieldProps): import("react").JSX.Element; export declare namespace CopyField { var displayName: string; } export default CopyField;