import * as React from "react"; import { PopoutProps, PopoutRenderProps } from "./Popout"; export declare function openPopout(render: (props: PopoutRenderProps) => React.ReactNode, target: Element, options?: Omit, name?: string): string; /** * Create a Popout that is tied to the lifecycle of the calling component. When * the parent unmounts, the Popout will automatically be closed. * * Returns a 2-tuple of: * - a callback function to open the Popout (e.g., from a button click) * - a boolean of whether the Popout is currently open. */ export declare function usePopout(render: (props: PopoutRenderProps) => React.ReactNode, targetRef: React.RefObject, options?: Omit): [() => unknown, boolean]; //# sourceMappingURL=openPopout.d.ts.map