1 | import { ReactNode } from 'react';
|
2 | import { GroupTypeBase, OptionTypeBase } from './types';
|
3 |
|
4 | export type formatGroupLabel<
|
5 | OptionType extends OptionTypeBase = any,
|
6 | GroupType extends GroupTypeBase<OptionType> = GroupTypeBase<OptionType>
|
7 | > = (group: GroupType) => ReactNode;
|
8 | export function formatGroupLabel(group: GroupTypeBase<any>): ReactNode;
|
9 |
|
10 | export type getOptionLabel<OptionType extends OptionTypeBase = any> = (option: OptionType) => string;
|
11 | export function getOptionLabel(option: any): string;
|
12 |
|
13 | export type getOptionValue<OptionType extends OptionTypeBase = any> = (option: OptionType) => string;
|
14 | export function getOptionValue(option: any): string;
|
15 |
|
16 | export type isOptionDisabled<OptionType extends OptionTypeBase = any> = (option: OptionType) => boolean;
|
17 | export function isOptionDisabled(option: any): boolean;
|