import { BoxProps, ChakraComponent, ChakraProps } from '@chakra-ui/react'; import { default as React } from 'react'; import { HelperErrorTextType } from '../HelperErrorText/HelperErrorText'; export declare const selectVariantsArray: readonly ["default", "searchbar"]; export declare const labelPositionsArray: readonly ["default", "inline"]; export type SelectVariants = typeof selectVariantsArray[number]; export type LabelPositions = typeof labelPositionsArray[number]; export interface SelectProps extends Pick, Omit, "color"> { /** The initial value of an uncontrolled component */ defaultValue?: string; /** Optional string to populate the `HelperErrorText` for the standard state. */ helperText?: HelperErrorTextType; /** Optional string to populate the `HelperErrorText` for the error state * when `isInvalid` is true. */ invalidText?: HelperErrorTextType; /** Adds the `disabled` and `aria-disabled` attributes to the select when true */ isDisabled?: boolean; /** Adds the `aria-invalid` attribute to the select when true. This also makes * the color theme "NYPL error" red for the select and text. */ isInvalid?: boolean; /** Adds the `required` and `aria-required` attributes to the input when true. */ isRequired?: boolean; /** Optional value to render the label inline, rather than the default (on top) * of the select element. */ labelPosition?: LabelPositions; /** Provides text for a `Label` component if `showLabel` is set to `true`; * populates an `aria-label` attribute on the select input if `showLabel` is * set to `false`. */ labelText: string; /** Placeholder text in the select element. */ placeholder?: string; /** Allows the '(required)' text to be changed for language purposes * Note: Parenthesis will be added automatically by the component */ requiredLabelText?: string; /** The variant to display. */ variant?: SelectVariants; /** Offers the ability to hide the helper/invalid text. */ showHelperInvalidText?: boolean; /** Offers the ability to show the select's label onscreen or hide it. Refer * to the `labelText` property for more information. */ showLabel?: boolean; /** Whether or not to display the "(required)" text in the label text. * True by default. */ showRequiredLabel?: boolean; } /** * Component that renders Chakra's `Select` component along with an accessible * `Label` and optional `HelperErrorText` component. */ export declare const Select: ChakraComponent & React.RefAttributes>, React.PropsWithChildren>; export default Select;