import { default as React } from 'react'; export declare const getInitialSelectedOption: (options: DropdownOption[], initial?: DropdownOption | number | undefined) => DropdownOption | undefined; export type DropdownOption = { /** * A human-readable element rendered to represent the option. */ label: React.ReactNode; /** * The programmatic value used when the option is selected. */ value?: T | undefined; /** * * * @default standard */ variant?: "standard" | "danger" | undefined; }; export type DropdownProps = { /** * A class property to attach to the element. * * @see {@link !Element.className} */ className?: string | undefined; /** * If `true`, the component is disabled. * * @default false */ disabled?: boolean | undefined; /** * An option or an index of an option from `options` to select on first render. */ initialSelectedOption?: DropdownOption | number | undefined; /** * A callback invoked when an option is selected. */ onChange?: ((option: DropdownOption | null) => void) | undefined; /** * A list of options to render in the dropdown. */ options?: DropdownOption[] | undefined; /** * A visual element rendered next to the current selected option in the dropdown menu. To disable * the indicator, specify `null`. * * Currently, only disabling the indicator is supported. */ selectedOptionIndicator?: null | undefined; /** * Display a static value in place of the the dropdown toggle button (in place of the current * selected option). */ toggle?: { label?: React.ReactNode | undefined; } | undefined; }; /** * Dropdowns let users select from a list of options. * * * * @param props * @internal * @example * ```ts * import { Dropdown } from "@netlify/sdk/react/components"; * * * ``` */ export declare const Dropdown: (props: DropdownProps & { ref?: React.ForwardedRef | undefined; }) => JSX.Element; //# sourceMappingURL=Dropdown.d.ts.map