import { type MessageDescriptor } from "react-intl"; import { type INumberParameterConstraints } from "@gooddata/sdk-model"; import { type IDropdownBodyRenderProps } from "../Dropdown/Dropdown.js"; import { type ParameterSubmitModeProps } from "./submitMode.js"; /** * @internal */ export type INumberParameterControlDropdownProps = { name: string; value: number; /** * The workspace default value for the Reset link. The control hides Reset when this value is * `undefined`, or when it is equal to the current valid draft. */ resetValue?: number; constraints?: INumberParameterConstraints; inputId?: string; ariaAttributes?: IDropdownBodyRenderProps["ariaAttributes"]; onClose: () => void; } & ParameterSubmitModeProps; /** * Dropdown panel to edit a numeric parameter value. It keeps the draft, does the inline * validation, and shows the Reset link. * * @internal */ export declare function NumberParameterControlDropdown(props: INumberParameterControlDropdownProps): import("react/jsx-runtime").JSX.Element; /** * Returns the message to show for an invalid draft, or `undefined` when the draft is a valid * in-range number. The single source of truth the dropdown derives its error row, input style, * and Apply-disabled state from. * * @internal */ export declare function getDraftValidationError(draft: string, constraints?: INumberParameterConstraints): MessageDescriptor | undefined; //# sourceMappingURL=NumberParameterControlDropdown.d.ts.map