UNPKG

2.98 kBTypeScriptView Raw
1/// <reference types="react" />
2export type { SearchProps } from './types';
3declare const _default: import("../config-provider/types").ConfiguredComponentClass<import("./types").SearchProps & import("../config-provider/types").ComponentCommonProps, {
4 highlightKey: unknown;
5 inputRef: import("../select").AutoComplete | null;
6 onChange: (value: any, actionType: string, item: any) => void;
7 onPressEnter: () => void;
8 onSearch: () => void;
9 onFilterChange: (filterValue: string) => void;
10 onToggleHighlightItem: (highlightKey: unknown, ...args: unknown[]) => void;
11 onKeyDown: (e: import("react").KeyboardEvent<Element>) => void;
12 saveInputRef: (ref: import("../select").AutoComplete) => void;
13 focus: (e: import("react").FocusEvent<HTMLInputElement, Element>) => void;
14 handleFocus(args_0: import("react").FocusEvent<HTMLInputElement, Element>): void;
15 handleBlur(args_0: import("react").FocusEvent<HTMLInputElement, Element>): void;
16 render(): import("react").JSX.Element;
17 context: any;
18 setState<K extends keyof import("./Search").SearchState>(state: import("./Search").SearchState | ((prevState: Readonly<import("./Search").SearchState>, props: Readonly<import("./types").SearchProps>) => import("./Search").SearchState | Pick<import("./Search").SearchState, K> | null) | Pick<import("./Search").SearchState, K> | null, callback?: (() => void) | undefined): void;
19 forceUpdate(callback?: (() => void) | undefined): void;
20 readonly props: Readonly<import("./types").SearchProps> & Readonly<{
21 children?: import("react").ReactNode;
22 }>;
23 state: Readonly<import("./Search").SearchState>;
24 refs: {
25 [key: string]: import("react").ReactInstance;
26 };
27 componentDidMount?(): void;
28 shouldComponentUpdate?(nextProps: Readonly<import("./types").SearchProps>, nextState: Readonly<import("./Search").SearchState>, nextContext: any): boolean;
29 componentWillUnmount?(): void;
30 componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
31 getSnapshotBeforeUpdate?(prevProps: Readonly<import("./types").SearchProps>, prevState: Readonly<import("./Search").SearchState>): any;
32 componentDidUpdate?(prevProps: Readonly<import("./types").SearchProps>, prevState: Readonly<import("./Search").SearchState>, snapshot?: any): void;
33 componentWillMount?(): void;
34 UNSAFE_componentWillMount?(): void;
35 componentWillReceiveProps?(nextProps: Readonly<import("./types").SearchProps>, nextContext: any): void;
36 UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("./types").SearchProps>, nextContext: any): void;
37 componentWillUpdate?(nextProps: Readonly<import("./types").SearchProps>, nextState: Readonly<import("./Search").SearchState>, nextContext: any): void;
38 UNSAFE_componentWillUpdate?(nextProps: Readonly<import("./types").SearchProps>, nextState: Readonly<import("./Search").SearchState>, nextContext: any): void;
39}, {}>;
40export default _default;
41
\No newline at end of file