UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

9 lines (8 loc) 1.01 kB
import * as React from 'react'; import type { PickerMode } from '@rc-component/picker/interface'; import type { PickerLocale, PickerProps } from './generatePicker'; export declare const getPlaceholder: (locale: PickerLocale, picker?: PickerMode, customizePlaceholder?: string) => string; export declare const getRangePlaceholder: (locale: PickerLocale, picker?: PickerMode, customizePlaceholder?: [string, string]) => [string, string] | undefined; export declare const useIcons: (props: Pick<PickerProps, "allowClear" | "removeIcon">, prefixCls: string) => readonly [false | { clearIcon: React.ReactNode; }, string | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | ((props: any) => React.ReactNode) | null | undefined];