import { PropsWithChildren } from 'react'; import { IFrameMessage } from './IFrameMessage'; type PreviewElement = { element: HTMLElement; adminRoute: string; label: string; }; export type OverlayElementData = { adminRoute: string; label: string; position: { zIndex: number; top: number; left: number; width: number; height: number; }; }; export interface IFrameBridgeContext { hasBridge: boolean; block?: any; showOnlyVisible: boolean; selectedAdminRoute?: string; hoveredAdminRoute?: string | null; sendSelectComponent: (id: string) => void; sendHoverComponent: (route: string | null) => void; /** * @deprecated Use sendSitePreviewIFrameMessage instead */ sendMessage: (message: IFrameMessage) => void; showOutlines: boolean; contentScope: unknown; contentScopeJwt: string; graphQLApiUrl: string | undefined; previewElementsData: OverlayElementData[]; addPreviewElement: (element: PreviewElement) => void; removePreviewElement: (element: PreviewElement) => void; } export declare const IFrameBridgeContext: import('react').Context; export declare const IFrameBridgeProvider: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=IFrameBridge.d.ts.map