import type { EditUrlInfo } from '../../utils/editUrl.js'; export type WebsiteState = { clickToEditEnabled: boolean; path: string; itemIdsPerEnvironment: Record; }; export type OnInitData = { editUrlRegExp: { source: string; flags: string }; }; /** * Methods that the Web Previews plugin exposes to the website (Child to Parent). */ export type WebPreviewsPluginMethods = { onInit(): Promise; onPing(): Promise; onStateChange(payload: WebsiteState): Promise; openItem(payload: EditUrlInfo): Promise; };