/// import { LanType, Direction } from './locale/Props'; import { SpinNameType } from '../spin/spin.type'; export type SpinConfig = SpinNameType | { name: SpinNameType; color?: string; tip?: React.ReactNode; mode?: 'vertical' | 'horizontal'; size?: number; }; type TooltipConfig = { persistent?: boolean; }; /** * @en Global configuration for Modal component * @cn Modal组件的全局配置 * @version 3.9.10 */ export type ModalConfig = { /** * @en Global default mask setting for Modal component. false to hide mask, { blur: true } to show blurred mask * @cn Modal组件的全局默认遮罩设置。false 隐藏遮罩,{ blur: true } 显示模糊遮罩 */ mask?: boolean | { blur?: boolean; }; }; /** * @en Global configuration for Popover component * @cn Popover组件的全局配置 * @version 3.9.9 */ export type PopoverConfig = { /** * @en Global default animation setting for Popover component * @cn Popover组件的全局默认动画设置 */ animation?: boolean; }; /** * @en Global configuration for Empty component * @cn Empty组件的全局配置 * @version 3.8.0 */ type EmptyConfig = { /** * @en Global default icon for Empty component * @cn Empty组件的全局默认图标 */ icon?: () => React.ReactNode; /** * @en Global default description for Empty component * @cn Empty组件的全局默认描述 */ description?: React.ReactNode | boolean; }; export interface ConfigOption { prefix: string; locale: LanType; delay?: number; trim?: boolean; spin?: SpinConfig; tooltip?: TooltipConfig; popover?: PopoverConfig; /** * @en Global configuration for Modal component * @cn Modal组件的全局配置 * @version 3.9.10 */ modal?: ModalConfig; /** * @en Global configuration for Empty component * @cn Empty组件的全局配置 * @version 3.8.0 */ empty?: EmptyConfig; direction: Direction; popupContainer?: HTMLElement | null | (() => HTMLElement | null); } export declare const defaultConfig: ConfigOption; export declare let config: ConfigOption; export declare function getDefaultContainer(): HTMLElement | null; export declare const useConfig: () => ConfigOption; export declare const setConfig: (option: Partial) => void; export { setLocale, getLocale } from './locale/index'; //# sourceMappingURL=index.d.ts.map