import type React from 'react'; export type Primitive = null | undefined | string | number | boolean | symbol | bigint; /** https://github.com/Microsoft/TypeScript/issues/29729 */ export type LiteralUnion = T | (U & Record); export type AnyObject = Record; export type EmptyObject = Record; export type CustomComponent

= React.ComponentType

| string; /** * Get component props * @example * ```ts * import { Checkbox } from 'antd' * import type { GetProps } from 'antd'; * * type CheckboxGroupProps = GetProps * * const MyContext = React.createContext<{ sample?: boolean }>({}); * type MyContextProps = GetProps; * * ``` * @since 5.13.0 */ export type GetProps | object> = T extends React.Context ? CP : T extends React.ComponentType ? P : T extends object ? T : never; /** * Get component props by component name * @example * ```ts * import { Select } from 'antd'; * import type { GetProp, SelectProps } from 'antd'; * * type SelectOption1 = GetProp[number]; * // or * type SelectOption2 = GetProp[number]; * * const onChange: GetProp = (value, option) => { * // Do something * }; * ``` * @since 5.13.0 */ export type GetProp | object, PropName extends keyof GetProps> = NonNullable[PropName]>; type ReactRefComponent | string; }> = (props: Props) => React.ReactNode; type ExtractRefAttributesRef = T extends React.RefAttributes ? P : never; /** * Get component ref * @example * ```ts * import { Input } from 'antd'; * import type { GetRef } from 'antd'; * * type InputRef = GetRef; * ``` * @since 5.13.0 */ export type GetRef | React.Component> = T extends React.Component ? T : T extends React.ComponentType ? ExtractRefAttributesRef

: never; export type ValidChar = 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'h' | 'i' | 'j' | 'k' | 'l' | 'm' | 'n' | 'o' | 'p' | 'q' | 'r' | 's' | 't' | 'u' | 'v' | 'w' | 'x' | 'y' | 'z'; export {};