import { NativeTemplateContribution, WebPluginDefinition, WebPluginScope, WebTemplateContribution } from "@agimon-ai/po-core/web"; //#region src/web/lib/templateCatalog.d.ts export interface InstalledWebTemplate extends WebTemplateContribution { pluginId: string; } export interface WebTemplateDiagnostic { kind: 'invalid-template' | 'duplicate-template'; pluginId: string; message: string; } export interface WebTemplateCatalog { templates: InstalledWebTemplate[]; diagnostics: WebTemplateDiagnostic[]; } /** The host supplies its bundled recovery application, avoiding a library-to-template dependency. */ export declare function bindBundledWebTemplates(plugins: readonly WebPluginDefinition[]): void; /** Read scoped templates, then add any bundled template the scope does not provide. */ export declare function collectWebTemplates(plugins: readonly WebPluginDefinition[], scope?: WebPluginScope): WebTemplateCatalog; export interface InstalledNativeTemplate extends NativeTemplateContribution { pluginId: string; } export interface NativeTemplateCatalog { templates: InstalledNativeTemplate[]; diagnostics: WebTemplateDiagnostic[]; } /** The phone app's bundled default layout, bound by the host exactly as the cockpit binds its own. */ export declare function bindBundledNativeTemplates(plugins: readonly WebPluginDefinition[]): void; /** Phone layouts from `nativeTemplates`, then any bundled layout the scope does not provide. */ export declare function collectNativeTemplates(plugins: readonly WebPluginDefinition[], scope?: WebPluginScope): NativeTemplateCatalog; /** The phone app's own copy of a bundled layout, valid at the global scope, for screens no host owns. */ export declare function bundledNativeTemplate(id: string): NativeTemplateContribution | undefined; /** The cockpit's choice rule for the phone: configured, then the default, then the first by id. */ export declare function resolveNativeTemplate(templates: readonly InstalledNativeTemplate[], configured: string | undefined, failed?: readonly string[]): InstalledNativeTemplate | undefined; /** A missing default stays in config, since another workspace may still provide it. */ export declare function resolveWebTemplate(templates: readonly InstalledWebTemplate[], configured: string | undefined, failed?: readonly string[]): { template: InstalledWebTemplate | undefined; warning: string | undefined; }; /** * A background's `web.backdrop` value: the `/` of its `backdrop` fill. A cloud host's registry * prefixes plugin ids with its host id; config never carries that runtime prefix. */ export declare function backdropId(fill: { pluginId: string; id: string; }): string; /** * The one background to show, never a stack: the configured fill, else Po's bamboo, else none; `none` shows * none. A configured fill that is not installed stays in config, since another workspace may still provide it. */ export declare function resolveBackdrop(fills: readonly Fill[], configured: string | undefined): Fill | undefined; //#endregion //# sourceMappingURL=templateCatalog.d.mts.map