import type { Ref } from 'react';
interface InlineFitOptions {
    /**
     * Holds the current presentation while the user interacts with it (an
     * open dropdown, focus inside the inline form). Measurements keep
     * flowing; the pending transition applies when the hold releases.
     */
    locked?: boolean;
}
interface InlineFit {
    /**
     * Ref for the element wrapping the inline controls at their natural
     * width. While mounted, the measurement tracks it live; when the caller
     * unmounts it (collapsed presentation), the last value is retained and
     * drives the expand-back decision, and remounting re-measures it.
     */
    measureRef: Ref<HTMLDivElement>;
    /**
     * Whether the inline controls exceed the header's budget and the
     * collapsed presentation should show instead.
     */
    collapsed: boolean;
}
/**
 * Decides whether the inline attribute controls fit the space the header
 * row can grant its toolbar.
 *
 * @param {InlineFitOptions} [options] Fit options.
 */
export declare function useInlineFit(options?: InlineFitOptions): InlineFit;
export {};
//# sourceMappingURL=use-inline-fit.d.ts.map