import * as react_jsx_runtime from 'react/jsx-runtime'; import { ApplicationHandoff, OverlayNode, OverlayZIndexLane } from '@inf-monkeys-tech/monkeys'; import { AnchorHTMLAttributes, ReactNode, MouseEvent, RefObject } from 'react'; import { c as BaseAppearance, V as BaseDialogClassNames } from './types-961bd33013f0.mjs'; import { d as RenderNodeRuntimeState, g as getRenderNodeDataAttributes, b as RenderNodeHostProps } from './RenderNodeHost-30201d0b0577.mjs'; interface ApplicationHandoffLinkProps extends Omit, 'href' | 'onClick'> { handoff: ApplicationHandoff; targetPath?: string; targetOrigin?: string; children?: ReactNode; onActivate?: (handoff: ApplicationHandoff, event: MouseEvent) => void; } declare function ApplicationHandoffLink({ handoff, targetPath, targetOrigin, children, onActivate, ...props }: ApplicationHandoffLinkProps): react_jsx_runtime.JSX.Element; interface OverlayHistoryAdapter { getCurrentUrl(): string; push(url: string): void; replace(url: string): void; back(): void; subscribe(listener: (url: string) => void): () => void; } interface OverlayNodeRuntimeContext extends RenderNodeRuntimeState { open: boolean; zIndexLane: OverlayZIndexLane; zIndex: number; initialFocusRef?: RefObject; focusReturnRef?: RefObject; renderNodeAttributes: ReturnType; onOpenChange(open: boolean): void; requestClose(): void; } interface OverlayNodeHostProps { node: OverlayNode; open: boolean; renderStrategy?: 'delegate' | 'dialog'; title?: ReactNode; description?: ReactNode; footer?: ReactNode; closeLabel?: string; children?: ((runtime: OverlayNodeRuntimeContext) => ReactNode) | ReactNode; appearance?: BaseAppearance; className?: string; classNames?: BaseDialogClassNames; initialFocusRef?: RefObject; focusReturnRef?: RefObject; historyAdapter?: false | OverlayHistoryAdapter; manualQueryEnabled?: boolean; onActivate?: RenderNodeHostProps['onActivate']; onRuntimeStateChange?: RenderNodeHostProps['onRuntimeStateChange']; onOpenChange: (open: boolean) => void; } declare const getOverlayZIndex: (lane: OverlayZIndexLane) => number; declare const getOverlayPresentationClassNames: (presentation: OverlayNode["presentation"]) => Pick; declare const isOverlayUrlActive: (node: OverlayNode, input: string) => boolean; declare const buildOverlayUrl: (node: OverlayNode, input: string, open: boolean) => string; declare const browserOverlayHistoryAdapter: OverlayHistoryAdapter; declare function OverlayNodeHost({ node, open, renderStrategy, title, description, footer, closeLabel, children, appearance, className, classNames, initialFocusRef, focusReturnRef, historyAdapter, manualQueryEnabled, onActivate, onRuntimeStateChange, onOpenChange, }: OverlayNodeHostProps): react_jsx_runtime.JSX.Element; export { ApplicationHandoffLink as A, type OverlayHistoryAdapter as O, type ApplicationHandoffLinkProps as a, OverlayNodeHost as b, type OverlayNodeHostProps as c, type OverlayNodeRuntimeContext as d, browserOverlayHistoryAdapter as e, buildOverlayUrl as f, getOverlayPresentationClassNames as g, getOverlayZIndex as h, isOverlayUrlActive as i };