/** * Spec Type Guards — Centralised type narrowing functions for AnySpec. * * Import these instead of writing inline `spec.type === "component"` checks. * Each guard is a proper TypeScript type predicate so the compiler narrows * the union correctly. */ import type { AnySpec, ComponentSpec, PageSpec, DataVizSpec, DesignSpec, IASpec } from "./types.js"; /** Narrow an AnySpec to ComponentSpec. */ export declare function isComponentSpec(spec: AnySpec): spec is ComponentSpec; /** Narrow an AnySpec to PageSpec. */ export declare function isPageSpec(spec: AnySpec): spec is PageSpec; /** Narrow an AnySpec to DataVizSpec. */ export declare function isDataVizSpec(spec: AnySpec): spec is DataVizSpec; /** Narrow an AnySpec to DesignSpec. */ export declare function isDesignSpec(spec: AnySpec): spec is DesignSpec; /** Narrow an AnySpec to IASpec. */ export declare function isIASpec(spec: AnySpec): spec is IASpec;