/** Props for the {@link use} hook. */
export interface UseProps {
    initialVisible?: boolean;
    onVisibleChange?: (vis: boolean) => void;
}
/** Return type for the {@link use} hook. */
export interface UseReturn {
    visible: boolean;
    close: () => void;
    open: () => void;
    toggle: (vis?: boolean | unknown) => void;
}
interface ContextValue extends Pick<UseReturn, "close"> {
}
export declare const Context: import('react').Context<ContextValue>;
export declare const useContext: () => ContextValue;
/**
 * Implements basic dropdown behavior, and should be preferred when using
 * the {@link Dialog} component. Opens the dropdown whenever the 'open' function is
 * called, and closes it whenever the 'close' function is called OR the user clicks
 * outside of the dropdown parent wrapped,which includes the dropdown trigger (often
 * a button or input).
 *
 * @param initialVisible - Whether the dropdown should be visible on mount.
 * @returns visible - Whether the dropdown is visible.
 * @returns close - A function to close the dropdown.
 * @returns open - A function to open the dropdown.
 * @returns toggle - A function to toggle the dropdown.
 */
export declare const use: (props?: UseProps) => UseReturn;
export {};
//# sourceMappingURL=use.d.ts.map