import { type TreeContainer } from '../treeContainers'; import type { ForceIgnore } from '../forceIgnore'; import { SourcePath } from '../../common/types'; type TrailingSlash = 'always' | 'never' | 'auto'; type RedirectStatusCode = 301 | 302 | 307 | 308; export type UiBundleRewrite = { route?: string; rewrite?: string; }; export type UiBundleRedirect = { route?: string; redirect?: string; statusCode?: RedirectStatusCode; }; export type UiBundleHeaderKeyValue = { key?: string; value?: string; }; export type UiBundleHeaderRule = { source?: string; headers?: UiBundleHeaderKeyValue[]; }; export type UiBundleRouting = { rewrites?: UiBundleRewrite[]; redirects?: UiBundleRedirect[]; fallback?: string; trailingSlash?: TrailingSlash; fileBasedRouting?: boolean; }; export type UiBundleMcpResource = { name: string; path: string; }; export type UiBundleConfig = { outputDir?: string; routing?: UiBundleRouting; headers?: UiBundleHeaderRule[]; }; export type UiBundleMcpResourcesConfig = { mcpResources: UiBundleMcpResource[]; }; /** Basic shape check — use after field-level validation to narrow the type. */ export declare function isUiBundleConfig(value: unknown): value is UiBundleConfig; /** Validate a UI bundle's `ui-bundle.json` descriptor (if present) at deploy time. Only runs against a real filesystem. */ export declare function validateUiBundleForDeploy(contentPath: SourcePath, tree: TreeContainer, forceIgnore: ForceIgnore): void; /** Validate ui-bundle.json contents. Checks structure first, then schema, then file existence. */ export declare function validateUiBundleJson(raw: Buffer, descriptorPath: string, contentPath: SourcePath, tree: TreeContainer): void; /** Validate mcp-resources.json contents. Resource paths resolve from the bundle root, independent of outputDir. */ export declare function validateMcpResourcesJson(raw: Buffer, descriptorPath: string, contentPath: SourcePath, tree: TreeContainer): void; export {};