import * as React from "react"; import type { FocusableProps as AkFocusableProps } from "@ariakit/react/focusable"; import type { RoleProps } from "@ariakit/react/role"; export declare const isBrowser: boolean; export declare const supportsPopover: boolean; export declare function isDocument(node?: Node): node is Document; export declare function getOwnerDocument(node?: Node | null): Document | null; export declare function getWindow(node: Node): (Window & typeof globalThis) | null; /** "Parses" a string of HTML into a DocumentFragment. */ export declare function parseDOM(htmlString: string, { ownerDocument }: { ownerDocument: Document; }): DocumentFragment; /** * Wrapper over `React.forwardRef` which allows refs to be loosely typed as `HTMLElement`. * * Usage: * * ```tsx * const Button = forwardRef<"button", ButtonProps>((props, forwardedRef) => {}); * * const ref = React.useRef(null); // or React.useRef(null) *