import { Placement } from '@floating-ui/react'; import { MouseEventHandler } from 'react'; interface UseReleaseAnnouncementProps { /** * Whether the release announcement is open. */ open: boolean; /** * The header of the release announcement. */ header: string; /** * The description of the release announcement. */ description: string; /** * The label of the close button. */ closeLabel: string; /** * The placement of the release announcement. */ placement: Placement; /** * The event handler for the close button. */ onClick: MouseEventHandler; /** * Whether to display an arrow. */ displayArrow?: boolean; } /** * This hook provides the necessary props to create a release announcement. */ export declare function useReleaseAnnouncement({ open, header, description, closeLabel, placement, onClick, displayArrow, }: UseReleaseAnnouncementProps): { labelId: string | undefined; descriptionId: string | undefined; header: string; description: string; closeLabel: string; onClick: MouseEventHandler; displayArrow: boolean | undefined; arrowRef: import('react').RefObject; getReferenceProps: (userProps?: React.HTMLProps) => Record; getFloatingProps: (userProps?: React.HTMLProps) => Record; getItemProps: (userProps?: Omit, "selected" | "active"> & { active?: boolean; selected?: boolean; }) => Record; placement: Placement; strategy: import('@floating-ui/utils').Strategy; middlewareData: import('@floating-ui/core').MiddlewareData; x: number; y: number; isPositioned: boolean; update: () => void; floatingStyles: React.CSSProperties; refs: { reference: import('react').MutableRefObject; floating: React.MutableRefObject; setReference: (node: import('@floating-ui/react-dom').ReferenceType | null) => void; setFloating: (node: HTMLElement | null) => void; } & import('@floating-ui/react').ExtendedRefs; elements: { reference: import('@floating-ui/react-dom').ReferenceType | null; floating: HTMLElement | null; } & import('@floating-ui/react').ExtendedElements; context: { placement: Placement; strategy: import('@floating-ui/utils').Strategy; x: number; y: number; middlewareData: import('@floating-ui/core').MiddlewareData; isPositioned: boolean; update: () => void; floatingStyles: React.CSSProperties; open: boolean; onOpenChange: (open: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void; events: import('@floating-ui/react').FloatingEvents; dataRef: React.MutableRefObject; nodeId: string | undefined; floatingId: string | undefined; refs: import('@floating-ui/react').ExtendedRefs; elements: import('@floating-ui/react').ExtendedElements; }; open: boolean; }; export {}; //# sourceMappingURL=useReleaseAnnouncement.d.ts.map