import { HTMLAttributes, Ref, RefObject } from 'react';
import { A11yPlacements, A11yMixedRefObject, A11yOverlayRef } from '../types';
export interface A11yPortalOptions {
targetRef: A11yMixedRefObject;
placement?: A11yPlacements;
parentWidth?: boolean;
fallbacks?: boolean;
onOpen?: () => void;
onClose?: () => void;
opened?: boolean;
}
export interface A11yPortal {
portalProps: HTMLAttributes;
portalRef: RefObject;
toggle: () => void;
open: () => void;
close: () => void;
placement: A11yPlacements;
opened: boolean;
}
export declare const usePortal: (options: A11yPortalOptions, ref: Ref>) => A11yPortal;