//#region src/internal/app-presentation-shared.d.ts declare const MCP_APP_PRESENTATION_SCRIPT_ID: "mcp-app-presentation"; interface McpAppThemePalette { readonly background: string; readonly surface: string; readonly border: string; readonly text: string; readonly textSecondary: string; } interface McpAppBrandColors { readonly accent?: string; readonly accentSoft?: string; readonly ink?: string; readonly surface?: string; } interface McpAppBrand { /** HTTPS URL without credentials; its origin is auto-added to `_meta.ui.csp.resourceDomains`. */ readonly logoUrl?: string; /** Optional dark-mode logo HTTPS URL; its origin is auto-added to `_meta.ui.csp.resourceDomains`. */ readonly logoDarkUrl?: string; readonly logoAlt?: string; /** Explicit light and/or dark surface tokens (supports single locked theme or host-synced pair). */ readonly theme?: { readonly light?: McpAppThemePalette; readonly dark?: McpAppThemePalette; readonly defaultScheme?: "light" | "dark"; }; readonly colors?: McpAppBrandColors; /** Plain host-installed font-family stack (`/^[A-Za-z0-9 ,'"-]+$/u`). Never loads external font URLs. */ readonly fontFamily?: string; } interface McpAppPresentation { readonly schemaVersion: 1; /** Product display name (e.g. `"Marketing Hub"`); `null` when neutral. */ readonly productName: string | null; /** Canonical web app origin (e.g. `"https://app.example.com"`) for deep links; `null` disables links. */ readonly hubUrl: string | null; readonly organization?: { readonly name: string; readonly slug: string; }; readonly project?: { readonly name: string; readonly slug: string; }; readonly brand?: McpAppBrand; } declare const NEUTRAL_APP_PRESENTATION: McpAppPresentation; /** * Safely construct an "Open in " deep link on `presentation.hubUrl`. * * Security invariants: * - Returns `null` when `presentation?.hubUrl` is null or absent. * - Rejects paths that do not start with a single `/` (blocks `//evil.com`, `https://...`, * `javascript:...`, backslashes, and ASCII control characters). * - Verifies `resolved.origin === hubOrigin` before returning. */ declare function buildHubUrl(presentation: Pick | null | undefined, path?: string, params?: Readonly>): string | null; //#endregion export { McpAppThemePalette as a, McpAppPresentation as i, McpAppBrand as n, NEUTRAL_APP_PRESENTATION as o, McpAppBrandColors as r, buildHubUrl as s, MCP_APP_PRESENTATION_SCRIPT_ID as t }; //# sourceMappingURL=app-presentation-shared.d.ts.map