UNPKG

755 BTypeScriptView Raw
1import React from 'react';
2import { IconType } from 'rc-tree/lib/interface';
3import { Key, LegacyDataNode } from './interface';
4interface ContextProps {
5 checkable: boolean | React.ReactNode;
6 checkedKeys: Key[];
7 halfCheckedKeys: Key[];
8 treeExpandedKeys: Key[];
9 treeDefaultExpandedKeys: Key[];
10 onTreeExpand: (keys: Key[]) => void;
11 treeDefaultExpandAll: boolean;
12 treeIcon: IconType;
13 showTreeIcon: boolean;
14 switcherIcon: IconType;
15 treeLine: boolean;
16 treeNodeFilterProp: string;
17 treeLoadedKeys: Key[];
18 treeMotion: any;
19 loadData: (treeNode: LegacyDataNode) => Promise<unknown>;
20 onTreeLoad: (loadedKeys: Key[]) => void;
21}
22export declare const SelectContext: React.Context<ContextProps>;
23export {};