import { ComponentDefaults } from './configProvider.types.js'; /** * Merge global defaults from the nearest `ConfigProvider` **under** the props * the caller actually passed: an explicit prop always wins, a global default * fills in only props the caller left `undefined`, and the component's own * built-in default (its destructuring default) applies when neither is set. * * Call it at the very top of a component and destructure from the result * instead of from the raw props: * * ```tsx * function Input(props: InputProps) { * const { alwaysFloatLabel = false, ... } = useComponentDefaults('Input', props); * } * ``` */ export declare function useComponentDefaults

(component: keyof ComponentDefaults, props: P): P;