import { type IScalarParameterDefinition, type ParameterValue } from "@gooddata/sdk-model"; import { type IDropdownBodyRenderProps } from "../Dropdown/Dropdown.js"; import { type ParameterSubmitModeProps } from "./submitMode.js"; /** * @internal */ export type IParameterControlProps = { name: string; definition: IScalarParameterDefinition; value: ParameterValue; resetValue?: ParameterValue; inputId?: string; ariaAttributes?: IDropdownBodyRenderProps["ariaAttributes"]; /** * The control calls this itself after a commit-mode Apply, and after the user selects an * allowed value. The footer Cancel or Close button also calls this. Close does not remove the * staged value. */ onClose: () => void; } & ParameterSubmitModeProps; /** * Controls the full parameter edit session. It selects the control variant from `definition.type` * and the constraint shape, then gives the commit or staged mode to that variant. To add a * variant, add a sibling control and a new case here. * * @internal */ export declare function ParameterControl(props: IParameterControlProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=ParameterControl.d.ts.map