import { Dispatch, PropsWithChildren, ReactElement, SetStateAction } from 'react';
import { ItemsMap, SelectItem } from './types';
export interface SelectContextState {
    itemsMap: ItemsMap;
    disabled: boolean;
    readOnly: boolean;
    state?: 'error' | 'alert' | 'success';
    itemsComponent: ReactElement | undefined;
    selectedItem: SelectItem | undefined;
    setValue: (value: string) => void;
    isControlled: boolean;
    onValueChange?: (value: string) => void;
    ariaLabel: string | undefined;
    setAriaLabel: Dispatch<SetStateAction<string | undefined>>;
    fieldId: string;
    fieldLabelId: string | undefined;
    name: string | undefined;
    required: boolean;
    placeholder: string | undefined;
    setPlaceholder: Dispatch<SetStateAction<string | undefined>>;
}
export type SelectContextProps = PropsWithChildren<{
    /**
     * Use `state` prop to assign a specific state to the select, choosing from: `error`, `alert` and `success`. By doing so, the outline styles will be updated.
     */
    state?: 'error' | 'alert' | 'success';
    /**
     * When true, prevents the user from interacting with the select.
     */
    disabled?: boolean;
    /**
     * Sets the select as interactive or not.
     */
    readOnly?: boolean;
    /**
     * The value of the select when initially rendered. Use when you do not need to control the state of the select.
     */
    defaultValue?: string;
    /**
     * The controlled value of the select. Should be used in conjunction with `onValueChange`.
     */
    value?: string;
    /**
     * Event handler called when the value changes.
     */
    onValueChange?: (value: string) => void;
    itemsComponent: ReactElement | undefined;
    /**
     * This attribute is used to specify the name of the control.
     * If wrapped with a FormField with a name, will be inherited from it.
     */
    name?: string;
    /**
     * A Boolean attribute indicating that an option with a non-empty string value must be selected.
     */
    required?: boolean;
}>;
export declare const SelectProvider: ({ children, defaultValue, value: valueProp, onValueChange, disabled: disabledProp, readOnly: readOnlyProp, state: stateProp, itemsComponent, name: nameProp, required: requiredProp, }: SelectContextProps) => import("react/jsx-runtime").JSX.Element;
export declare const useSelectContext: () => SelectContextState;
