import * as React from 'react';
import { STATE_CHANGE_TYPE, SIZE, COUNTRIES } from './constants';
import type { Override } from '../helpers/overrides';
import type { OnChangeParams } from '../select';
import type { ChangeEvent } from 'react';
export declare type Size = keyof typeof SIZE;
export declare type CountryIso = keyof typeof COUNTRIES;
export declare type Countries = Readonly<Country>;
export declare type Country = Readonly<{
    dialCode: string;
    id: CountryIso;
    label: string;
}>;
export declare type State = {
    country: Country;
    text: string;
};
export declare type StateChange = keyof typeof STATE_CHANGE_TYPE;
export declare type StateReducer = (type: StateChange, nextState: Partial<State>, currentState: State) => State;
export declare type mapIsoToLabel = (iso: string) => string;
export declare type CountrySelectDropdownProps = {
    children: Array<React.ReactElement<any>>;
    $country: Country;
    $mapIsoToLabel?: mapIsoToLabel;
    $maxDropdownHeight: string;
    $noResultsMsg: string;
    $overrides: {
        CountrySelectContainer?: Override;
        CountrySelectDropdown?: Override;
        CountrySelectDropdownListItem?: Override;
        CountrySelectDropdownFlagColumn?: Override;
        CountrySelectDropdownNameColumn?: Override;
        CountrySelectDropdownDialcodeColumn?: Override;
        FlagContainer?: Override;
        EmptyState?: Override;
    };
};
export declare type CountrySelectProps = {
    countries: {
        [x: string]: Country;
    };
    country: Country;
    disabled: boolean;
    error: boolean;
    inputRef: React.RefObject<HTMLInputElement>;
    onCountryChange: (event: OnChangeParams) => unknown;
    mapIsoToLabel?: mapIsoToLabel;
    maxDropdownHeight: string;
    maxDropdownWidth: string;
    overrides: {
        CountrySelectContainer?: Override;
        CountrySelectDropdown?: Override;
        CountrySelectDropdownListItem?: Override;
        CountrySelectDropdownFlagColumn?: Override;
        CountrySelectDropdownNameColumn?: Override;
        CountrySelectDropdownDialcodeColumn?: Override;
        DialCode?: Override;
        CountrySelect?: Override;
        FlagContainer?: Override;
    };
    positive: boolean;
    required: boolean;
    size: Size;
};
export declare type PhoneInputOverrides = {
    Root?: Override;
    Input?: Override;
    CountrySelectContainer?: Override;
    CountrySelectDropdown?: Override;
    CountrySelectDropdownListItem?: Override;
    CountrySelectDropdownFlagColumn?: Override;
    CountrySelectDropdownNameColumn?: Override;
    CountrySelectDropdownDialcodeColumn?: Override;
    DialCode?: Override;
    CountrySelect?: Override;
    FlagContainer?: Override;
};
export declare type PhoneInputProps = {
    /** Sets aria-label attribute of the input element. */
    'aria-label': string | undefined | null;
    /** Sets aria-labelledby attribute of the input element. */
    'aria-labelledby': string | undefined | null;
    /** Sets aria-describedby attribute of the input element. */
    'aria-describedby': string | undefined | null;
    /** Defines the value of the country select. */
    country: Country;
    /** Defines if the component is disabled. */
    disabled: boolean;
    /** Renders component in 'error' state. */
    error: boolean;
    /** Sets the id attribute of the input element. */
    id: string | undefined | null;
    /** Sets the max height of the country select dropdown. */
    maxDropdownHeight: string;
    /** Sets the max width of the country select dropdown. */
    maxDropdownWidth: string;
    /** Function for mapping ISO codes to country names. Useful for localization of the country select dropdown. */
    mapIsoToLabel?: mapIsoToLabel;
    /** Sets the name attribute of the input element. */
    name: string | undefined | null;
    /** A handler for the country select's change events. */
    onCountryChange: (event: OnChangeParams) => unknown;
    /** A handler for the input element's change events. */
    onTextChange: (event: ChangeEvent<HTMLInputElement>) => unknown;
    overrides: PhoneInputOverrides;
    /** Sets the placeholder text for the input element.  */
    placeholder?: string;
    /** Renders component in 'positive' state. */
    positive: boolean;
    /** Sets the 'required' attribute of the input element. The country select will always have a value so does has no need for 'require'. */
    required: boolean;
    /** Sets the size of the component. */
    size: Size;
    /** Defines the value of the input element. */
    text: string;
    /** Defines if the input value is clearable. */
    clearable?: boolean;
};
export declare type PhoneInputLiteProps = {
    countries: {
        [x: string]: Country;
    };
} & PhoneInputProps;
export declare type StatefulPhoneInputContainerProps = {
    children: (a: PhoneInputProps) => React.ReactNode;
    initialState: State;
    stateReducer: StateReducer;
    onTextChange: (event: ChangeEvent<HTMLInputElement>) => unknown;
    onCountryChange: (event: OnChangeParams) => unknown;
} & PhoneInputProps;
export declare type StatefulPhoneInputProps = PhoneInputProps & {
    initialState?: State;
    stateReducer?: StateReducer;
    onTextChange?: (event: ChangeEvent<HTMLInputElement>) => unknown;
    onCountryChange?: (event: OnChangeParams) => unknown;
};
