UNPKG

1.47 kBTypeScriptView Raw
1import PropTypes from 'prop-types';
2import { Requireable } from 'react';
3import type { TypeaheadProps } from './types';
4export declare const sizeType: PropTypes.Requireable<"lg" | "sm">;
5declare type Props = TypeaheadProps;
6declare type PropName = keyof Props;
7declare type Callback = (props: Props, propName: PropName, componentName: string) => void;
8declare type Validator = Requireable<unknown>;
9export declare function checkPropType(validator: Validator, callback: Callback): (props: Props, propName: PropName, componentName: string) => void;
10export declare function caseSensitiveType(props: Props): void;
11export declare function deprecated(validator: Validator, reason: string): (props: Props, propName: PropName, componentName: string) => void;
12export declare function defaultInputValueType(props: Props): void;
13export declare function defaultSelectedType(props: Props): void;
14export declare function highlightOnlyResultType({ allowNew, highlightOnlyResult, }: Props): void;
15export declare function ignoreDiacriticsType(props: Props): void;
16export declare function inputPropsType({ inputProps }: Props): void;
17export declare function isRequiredForA11y(props: Props, propName: PropName, componentName: string): void;
18export declare function labelKeyType({ allowNew, labelKey }: Props): void;
19export declare const optionType: PropTypes.Requireable<string | object>;
20export declare function selectedType({ multiple, onChange, selected }: Props): void;
21export {};