import type { ObjectRef } from "@go-go-golems/pbui-core"; export interface UsePresentationInput { type: string; ref: ObjectRef; label: string; pane?: string; /** container presentations: still menuable, but don't flash hover * outlines over their contents, and never dim inert (metrics(3) quiet) */ quiet?: boolean; /** participation during a foreign input context (CLIM-JSX-005 ยง5): * "gated" (default) dims + swallows; "active" stays interactive and may * run duringAccept commands; "fallthrough" goes gesture-transparent so * clicks reach the canvas beneath */ duringAccept?: "gated" | "active" | "fallthrough"; /** render-only: no registration, no gestures */ disabled?: boolean; } export interface PresentationHandle { props: { ref: (el: Element | null) => void; onMouseMove: (e: React.MouseEvent) => void; onMouseLeave: () => void; onClick: (e: React.MouseEvent) => void; onAuxClick: (e: React.MouseEvent) => void; onContextMenu: (e: React.MouseEvent) => void; onFocus: () => void; onKeyDown: (e: React.KeyboardEvent) => void; tabIndex: number; "data-pbui-type": string; }; isFocused: boolean; isHovered: boolean; isEligible: boolean; isInert: boolean; /** some presentation of the same object is hovered elsewhere */ isRelatedHover: boolean; className: string; } declare global { interface Window { /** presentation render counter, read by the perf budget spec */ __pbuiRenders?: number; } } export declare function usePresentation(input: UsePresentationInput): PresentationHandle;