//#region src/_util/hooks/useAllowClear.d.ts interface AllowClearConfig { /** Custom clear icon */ clearIcon?: any; /** Disable the clear button */ disabled?: boolean; /** Tab order of the clear button. `-1` excludes it from Tab navigation */ tabIndex?: number; /** Accessible name of the clear button */ label?: string; } type AllowClear = boolean | AllowClearConfig; /** The hook never returns plain `true`: a truthy allowClear is normalized to the object form. */ type MergedAllowClear = AllowClearConfig | false; interface UseAllowClearOptions { allowClear?: AllowClear; clearIcon?: any; contextAllowClear?: AllowClear; contextClearIcon?: any; defaultAllowClear?: boolean; defaultLabel?: string; } /** * Getter for the localized clear button label (`locale.global.clear`). * Reads the locale context lazily so callers can use it inside their own `computed` without extra reactive objects. */ declare function useAllowClearLabel(): () => string | undefined; /** * Merge component- and ConfigProvider-level `allowClear` / `clearIcon`. * Each field is resolved on its own (priority: props → context → default), so `allowClear: true` * inherits the global config while `disabled: false` / `tabIndex: 0` / `label: ''` still override it. */ declare function useAllowClear({ allowClear, clearIcon, contextAllowClear, contextClearIcon, defaultAllowClear, defaultLabel }: UseAllowClearOptions): MergedAllowClear; //#endregion export { AllowClear, AllowClearConfig, MergedAllowClear, UseAllowClearOptions, useAllowClear as default, useAllowClearLabel };