UNPKG

1.02 kBTypeScriptView Raw
1import * as React from 'react';
2import type { AlignType } from '@rc-component/trigger';
3import type { PickerMode } from 'rc-picker/lib/interface';
4import type { SelectCommonPlacement } from '../_util/motion';
5import type { DirectionType } from '../config-provider';
6import type { PickerLocale, PickerProps } from './generatePicker';
7export declare function getPlaceholder(locale: PickerLocale, picker?: PickerMode, customizePlaceholder?: string): string;
8export declare function getRangePlaceholder(locale: PickerLocale, picker?: PickerMode, customizePlaceholder?: [string, string]): [string, string] | undefined;
9export declare function transPlacement2DropdownAlign(direction: DirectionType, placement?: SelectCommonPlacement): AlignType;
10export declare function useIcons(props: Pick<PickerProps, 'allowClear' | 'removeIcon'>, prefixCls: string): readonly [false | {
11 clearIcon: React.ReactNode;
12}, string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | ((props: any) => React.ReactNode) | null];
13
\No newline at end of file