import type { ComputedRef, CSSProperties, ExtractPropTypes, InjectionKey, PropType, Ref } from 'vue'; import type { ScrollFocusOptions, ValidateMessages } from '../form/interface'; import type { RequiredMark } from '../form/Form'; import type { TransformCellTextProps } from '../table/interface'; import type { Locale } from '../locale-provider'; import type { DerivativeFunc } from '../_util/cssinjs'; import type { AliasToken, SeedToken } from '../theme/internal'; import type { MapToken, OverrideToken } from '../theme/interface'; import type { VueNode } from '../_util/type'; export declare const defaultIconPrefixCls = "anticon"; type GlobalFormCOntextProps = { validateMessages?: Ref; }; export type DirectionType = 'ltr' | 'rtl' | undefined; export declare const GlobalFormContextKey: InjectionKey; export declare const useProvideGlobalForm: (state: GlobalFormCOntextProps) => void; export declare const useInjectGlobalForm: () => GlobalFormCOntextProps; export declare const GlobalConfigContextKey: InjectionKey; export interface CSPConfig { nonce?: string; } export interface Theme { primaryColor?: string; infoColor?: string; successColor?: string; processingColor?: string; errorColor?: string; warningColor?: string; } export type SizeType = 'small' | 'middle' | 'large' | undefined; export type Direction = 'ltr' | 'rtl'; export type MappingAlgorithm = DerivativeFunc; export interface ThemeConfig { token?: Partial; components?: OverrideToken; algorithm?: MappingAlgorithm | MappingAlgorithm[]; hashed?: boolean; inherit?: boolean; } export declare const configProviderProps: () => { iconPrefixCls: StringConstructor; getTargetContainer: { type: PropType<() => HTMLElement | Window>; }; getPopupContainer: { type: PropType<(triggerNode?: HTMLElement) => HTMLElement>; }; prefixCls: StringConstructor; getPrefixCls: { type: PropType<(suffixCls?: string, customizePrefixCls?: string) => string>; }; renderEmpty: { type: PropType; }; transformCellText: { type: PropType<(tableProps: TransformCellTextProps) => any>; }; csp: { type: PropType; default: CSPConfig; }; input: { type: PropType<{ autocomplete?: string; }>; default: { autocomplete?: string; }; }; autoInsertSpaceInButton: { type: BooleanConstructor; default: any; }; locale: { type: PropType; default: Locale; }; pageHeader: { type: PropType<{ ghost?: boolean; }>; default: { ghost?: boolean; }; }; componentSize: { type: PropType; }; componentDisabled: { type: BooleanConstructor; default: any; }; direction: { type: PropType<"rtl" | "ltr">; default: string; }; space: { type: PropType<{ size?: SizeType | number; className?: string; style?: CSSProperties; }>; default: { size?: SizeType | number; className?: string; style?: CSSProperties; }; }; /** Alert common props (antd ≥ 5.7 / 5.14). */ alert: { type: PropType<{ className?: string; style?: CSSProperties; closeIcon?: VueNode; closable?: boolean | Record; }>; default: { className?: string; style?: CSSProperties; closeIcon?: VueNode; closable?: boolean | Record; }; }; /** Breadcrumb common props (antd ≥ 5.6). */ breadcrumb: { type: PropType<{ className?: string; style?: CSSProperties; separator?: VueNode; }>; default: { className?: string; style?: CSSProperties; separator?: VueNode; }; }; /** Card common props (antd ≥ 5.7). */ card: { type: PropType<{ className?: string; style?: CSSProperties; }>; default: { className?: string; style?: CSSProperties; }; }; /** Empty common props (antd ≥ 5.7). */ empty: { type: PropType<{ className?: string; style?: CSSProperties; }>; default: { className?: string; style?: CSSProperties; }; }; /** Avatar common props (antd ≥ 5.7). */ avatar: { type: PropType<{ className?: string; style?: CSSProperties; }>; default: { className?: string; style?: CSSProperties; }; }; /** Progress common props (antd ≥ 5.10). */ progress: { type: PropType<{ className?: string; style?: CSSProperties; }>; default: { className?: string; style?: CSSProperties; }; }; virtual: { type: BooleanConstructor; default: any; }; dropdownMatchSelectWidth: { type: (BooleanConstructor | NumberConstructor)[]; default: any; }; /** Prefer this over `dropdownMatchSelectWidth` (antd ≥ 5.5 rename). */ popupMatchSelectWidth: { type: (BooleanConstructor | NumberConstructor)[]; default: any; }; form: { type: PropType<{ validateMessages?: ValidateMessages; requiredMark?: RequiredMark; colon?: boolean; /** Auto scroll (and optional focus) to first failed field (antd ≥ 5). */ scrollToFirstError?: boolean | ScrollFocusOptions; }>; default: { validateMessages?: ValidateMessages; requiredMark?: RequiredMark; colon?: boolean; /** Auto scroll (and optional focus) to first failed field (antd ≥ 5). */ scrollToFirstError?: boolean | ScrollFocusOptions; }; }; pagination: { type: PropType<{ showSizeChanger?: boolean; }>; default: { showSizeChanger?: boolean; }; }; /** Transfer common props (antd ≥ 5.7; `selectionsIcon` ≥ 5.14). */ transfer: { type: PropType<{ selectionsIcon?: VueNode; }>; default: { selectionsIcon?: VueNode; }; }; /** Button common props (antd ≥ 5.17 / 5.25). */ button: { type: PropType<{ color?: 'default' | 'primary' | 'danger'; variant?: 'outlined' | 'dashed' | 'solid' | 'filled' | 'text' | 'link'; autoInsertSpace?: boolean; }>; default: { color?: 'default' | 'primary' | 'danger'; variant?: 'outlined' | 'dashed' | 'solid' | 'filled' | 'text' | 'link'; autoInsertSpace?: boolean; }; }; theme: { type: PropType; default: ThemeConfig; }; select: { type: PropType<{ showSearch?: boolean; }>; default: { showSearch?: boolean; }; }; wave: { type: PropType<{ disabled?: boolean; }>; default: { disabled?: boolean; }; }; /** Flex common props (antd ≥ 5.10). */ flex: { type: PropType<{ vertical?: boolean; }>; default: { vertical?: boolean; }; }; /** Warning level; `strict: false` softens console output (antd ≥ 5.10). */ warning: { type: PropType<{ strict?: boolean; }>; default: { strict?: boolean; }; }; /** Global variant for data-entry components (antd ≥ 5.19). */ variant: { type: PropType<"filled" | "outlined" | "borderless" | "underlined">; default: any; }; }; export type ConfigProviderProps = Partial>>; export interface ConfigProviderInnerProps { csp?: ComputedRef; autoInsertSpaceInButton?: ComputedRef; locale?: ComputedRef; direction?: ComputedRef<'ltr' | 'rtl'>; space?: ComputedRef<{ size?: number | SizeType; className?: string; style?: CSSProperties; }>; alert?: ComputedRef<{ className?: string; style?: CSSProperties; closeIcon?: VueNode; closable?: boolean | object; }>; breadcrumb?: ComputedRef<{ className?: string; style?: CSSProperties; separator?: VueNode; }>; card?: ComputedRef<{ className?: string; style?: CSSProperties; }>; empty?: ComputedRef<{ className?: string; style?: CSSProperties; }>; avatar?: ComputedRef<{ className?: string; style?: CSSProperties; }>; progress?: ComputedRef<{ className?: string; style?: CSSProperties; }>; virtual?: ComputedRef; dropdownMatchSelectWidth?: ComputedRef; popupMatchSelectWidth?: ComputedRef; getPrefixCls: (suffixCls?: string, customizePrefixCls?: string) => string; iconPrefixCls: ComputedRef; theme?: ComputedRef; renderEmpty?: (name?: string) => VueNode; getTargetContainer?: ComputedRef<() => HTMLElement | Window>; getPopupContainer?: ComputedRef<(triggerNode?: HTMLElement) => HTMLElement>; pageHeader?: ComputedRef<{ ghost?: boolean; }>; input?: ComputedRef<{ autocomplete?: string; }>; pagination?: ComputedRef<{ showSizeChanger?: boolean; }>; transfer?: ComputedRef<{ selectionsIcon?: VueNode; }>; button?: ComputedRef<{ color?: 'default' | 'primary' | 'danger'; variant?: 'outlined' | 'dashed' | 'solid' | 'filled' | 'text' | 'link'; autoInsertSpace?: boolean; }>; form?: ComputedRef<{ validateMessages?: ValidateMessages; requiredMark?: RequiredMark; colon?: boolean; scrollToFirstError?: boolean | ScrollFocusOptions; }>; select?: ComputedRef<{ showSearch?: boolean; }>; componentSize?: ComputedRef; componentDisabled?: ComputedRef; variant?: ComputedRef<'outlined' | 'borderless' | 'filled' | 'underlined' | undefined>; transformCellText?: ComputedRef<(tableProps: TransformCellTextProps) => any>; wave?: ComputedRef<{ disabled?: boolean; }>; flex?: ComputedRef<{ vertical?: boolean; }>; } export declare const configProviderKey: InjectionKey; export declare const defaultConfigProvider: ConfigProviderInnerProps; export declare const useConfigContextInject: () => ConfigProviderInnerProps; export declare const useConfigContextProvider: (props: ConfigProviderInnerProps) => void; export {};