util.d.ts 916 B

12345678
  1. import * as React from 'react';
  2. import type { PickerMode } from 'rc-picker/lib/interface';
  3. import type { PickerLocale, PickerProps } from './generatePicker';
  4. export declare function getPlaceholder(locale: PickerLocale, picker?: PickerMode, customizePlaceholder?: string): string;
  5. export declare function getRangePlaceholder(locale: PickerLocale, picker?: PickerMode, customizePlaceholder?: [string, string]): [string, string] | undefined;
  6. export declare function useIcons(props: Pick<PickerProps, 'allowClear' | 'removeIcon'>, prefixCls: string): readonly [false | {
  7. clearIcon: React.ReactNode;
  8. }, string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | ((props: any) => React.ReactNode) | null];