import type { AddonAPI, AddonLayout, Registry } from '@asteby/metacore-sdk'; export interface AddonLoaderProps { /** Unique key of the addon — maps to the federation container name. */ scope: string; /** URL of the addon's remoteEntry.js bundle (may carry a `?v=` cache-bust). */ url: string; /** Exposed module to import from the remote (e.g. './register'). */ module?: string; /** Host-provided API passed to the addon's register() call. */ api: AddonAPI; /** * Host registry used to {@link Registry.unbind} this addon's contributions * on dispose. Optional so legacy hosts keep compiling; without it, fiber * remounts leak routes/actions. */ hostRegistry?: Registry; /** * Addon key for SW cache purge. Defaults to `api.manifest.key`. */ addonKey?: string; /** * Registry owner passed to {@link Registry.unbind}. Defaults to `addonKey`. * Immersive `./plugin` fibers use `${key}::view` so they don't wipe the * shell `./register` contributions of the same addon. */ unbindKey?: string; /** Optional rendering while loading. */ fallback?: React.ReactNode; /** Called once the addon has successfully registered (including re-register). */ onReady?: () => void; /** Called if loading fails. */ onError?: (err: Error) => void; /** * Layout the host shell should render the addon under, mirroring * `manifest.frontend.layout`. Default (undefined / `"shell"`) keeps the * legacy chrome (Sidebar, Topbar, breadcrumbs). `"immersive"` flips the * shared {@link useAddonLayout} context so the host shell hides chrome * while the addon is mounted and restores it on unmount. * * Hosts that consume the context (see `useAddonLayout` / * ``) do NOT need to branch on this prop themselves * — the loader sets the context value via {@link useDeclareAddonLayout}. */ layout?: AddonLayout; children?: React.ReactNode; } export declare function AddonLoader({ scope, url, module, api, hostRegistry, addonKey, unbindKey, fallback, onReady, onError, layout, children, }: AddonLoaderProps): import("react").JSX.Element | null; //# sourceMappingURL=addon-loader.d.ts.map