import { ComponentSpec, ComponentDefinitions, ComponentCatalogError } from './types'; export type ValidateResult = { ok: true; specs: ComponentSpec[]; error?: undefined; } | { ok: false; error: ComponentCatalogError; specs?: undefined; }; /** * Attempts to parse a raw string (from a ```component code block) * into one or more ComponentSpec objects. * * Returns either a validated spec array or an error descriptor. */ export declare function validateSpec(raw: string, definitions: ComponentDefinitions): ValidateResult;