/** * @file * @author zhousheng */ import * as React from 'react'; import { Locale } from '../locale-provider'; import { RenderEmptyHandler } from './renderEmpty'; import { ConfigConsumer, ConfigContext, CSPConfig, DirectionType, ConfigConsumerProps } from './context'; import SizeContext, { SizeType } from './SizeContext'; import { RequiredMark } from '../form/Form'; import { TRenderType } from './UnstableContext'; export { RenderEmptyHandler, ConfigContext, ConfigConsumer, CSPConfig, DirectionType, ConfigConsumerProps }; export declare const configConsumerProps: string[]; export interface ConfigProviderProps { getTargetContainer?: () => HTMLElement; getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement; prefixCls?: string; iconPrefixCls?: string; children?: React.ReactNode; renderEmpty?: RenderEmptyHandler; csp?: CSPConfig; autoInsertSpaceInButton?: boolean; input?: { autoComplete?: string; }; locale?: Locale; pageHeader?: { ghost: boolean; }; componentSize?: SizeType; direction?: DirectionType; space?: { size?: SizeType | number; }; virtual?: boolean; dropdownMatchSelectWidth?: boolean; form?: { requiredMark?: RequiredMark; keepDisplayExtra?: boolean; }; } export declare const defaultPrefixCls = "acud"; export declare const defaultIconPrefixCls: string; declare function getGlobalIconPrefixCls(prefixCls?: string): string; interface ISetGlobalConfig extends Pick { /** * 为 react19 设置兼容的 render 方法 * @deprecated * - 仅用于 react19 * - 会在以后的版本中移除 * - 使用方式见 `README.md` * * @type {TRenderType} * @memberof ISetGlobalConfig */ unstableRender?: TRenderType; } declare const setGlobalConfig: ({ prefixCls, iconPrefixCls, unstableRender, }: ISetGlobalConfig) => void; export declare const globalConfig: () => { getPrefixCls: (suffixCls?: string, customizePrefixCls?: string) => string; getIconPrefixCls: typeof getGlobalIconPrefixCls; }; declare const ConfigProvider: React.FC & { ConfigContext: typeof ConfigContext; SizeContext: typeof SizeContext; config: typeof setGlobalConfig; }; export default ConfigProvider;