import type { ComputedRef } from 'vue'; import type { SizeType } from '../SizeContext'; export interface UseConfigResult { /** Inherited `componentSize` from nearest ConfigProvider (antd ≥ 5.3). */ componentSize: ComputedRef; /** Inherited `componentDisabled` from nearest ConfigProvider (antd ≥ 5.3). */ componentDisabled: ComputedRef; } /** * Read size / disabled from the nearest ConfigProvider. * Aligns with React `ConfigProvider.useConfig()` (antd ≥ 5.3.0). */ export declare function useConfig(): UseConfigResult; export default useConfig;