import type { RouteRow } from "../../../data/page-store"; import type { RemoteDatasourceDefinition } from "../../../data/remote-datasources/remote-datasource-registry"; /** * Live registry/routes for components rendered by a Puck plugin, without * subscribing to resolved datasource values the way useLiveRemoteDatasources * does. Use this when a component only needs the registry/routes and is * instantiated once per field, so it does not re-render on every datasource * load or retry. * * `fallbackPath` is only used outside a P1PuckProvider (e.g. the published * `EditorClient`), where there is no context to read the open document from. */ export declare function useLiveEditorContext(fallbackPath: string): { path: string; branchId: string | undefined; hasLoaded: boolean; registry: RemoteDatasourceDefinition[]; routes: RouteRow[]; routeTemplateKeys: string[]; savedPreviewParams: Record; };