1 | import * as React from 'react';
|
2 | import type { RawValueType, RenderNode } from './BaseSelect';
|
3 | import type { BaseOptionType, FieldNames, OnActiveValue, OnInternalSelect, SelectProps } from './Select';
|
4 | import type { FlattenOptionData } from './interface';
|
5 | export interface SelectContextProps {
|
6 | options: BaseOptionType[];
|
7 | optionRender?: SelectProps['optionRender'];
|
8 | flattenOptions: FlattenOptionData<BaseOptionType>[];
|
9 | onActiveValue: OnActiveValue;
|
10 | defaultActiveFirstOption?: boolean;
|
11 | onSelect: OnInternalSelect;
|
12 | menuItemSelectedIcon?: RenderNode;
|
13 | rawValues: Set<RawValueType>;
|
14 | fieldNames?: FieldNames;
|
15 | virtual?: boolean;
|
16 | direction?: 'ltr' | 'rtl';
|
17 | listHeight?: number;
|
18 | listItemHeight?: number;
|
19 | childrenAsData?: boolean;
|
20 | maxCount?: number;
|
21 | }
|
22 | declare const SelectContext: React.Context<SelectContextProps>;
|
23 | export default SelectContext;
|