/** * Return type for the useDownshiftEnvironment hook * @property {React.RefObject} ref - Ref to attach to the wrapper element * @property {object | undefined} environment - Environment configuration for downshift */ export interface UseDownshiftEnvironmentReturn { ref: React.RefObject; environment: { document: Document; addEventListener: typeof document.addEventListener; removeEventListener: typeof document.removeEventListener; Node: typeof Node; } | undefined; } /** * Hook to handle downshift environment configuration for shadow DOM support * * Features: * - Fixes shadow DOM compatibility issues with downshift * - Provides proper document and event listener references * - Returns ref for wrapper element and environment configuration * * @returns Object containing ref and environment configuration * * @example * const { ref, environment } = useDownshiftEnvironment(); * * return ( *
* * combobox content * *
* ); */ export declare const useDownshiftEnvironment: () => UseDownshiftEnvironmentReturn;