import { type Ref } from 'vue'; import type { ComponentSize } from 'element-ultra/shared'; /** * 获取组件大小 * @param props 组件属性, 一个有size属性的props, 优先使用props * @param fallback 第二优先的属性 * @param ignore 忽略的size来源 * @returns 组件的size */ interface SizeOption { props: { size?: ComponentSize; [key: string]: any; }; fallback?: Ref; ignore?: Array<'form' | 'global'>; } export declare const useSize: (option: SizeOption) => Ref<"default" | "small" | "large">; /** * 获取组件大小 * @param props 组件属性, 一个有size属性的props, 优先使用props * @param fallback 第二优先的属性 * @param ignore 忽略的size来源 * @returns 组件的size */ interface DisabledOption { props: { disabled?: boolean; [key: string]: any; }; fallback?: Ref; } export declare const useDisabled: (options: DisabledOption) => any; export {};