/**
 * Codex YAML parsing + runtime validation.
 *
 * Authoritative parse for codex.yaml files. Used by `opensquid codex
 * install <path>` to validate before storing locally. Foreign-format
 * imports (superpowers SKILL.md, ECC, etc.) come pre-converted to
 * native codex YAML via LLM at install time — this parser sees the
 * native shape only.
 */
import { z } from "zod";
import type { Codex } from "./types.js";
export declare class CodexParseError extends Error {
    readonly issues?: z.ZodIssue[] | undefined;
    constructor(message: string, issues?: z.ZodIssue[] | undefined);
}
/**
 * Parse + validate a codex from a raw object (already-parsed YAML/JSON).
 *
 * Throws `CodexParseError` on schema violations with detailed issues.
 */
export declare function parseCodex(raw: unknown): Codex;
/**
 * Parse a codex from a YAML string.
 *
 * Throws `CodexParseError` on YAML syntax error or schema violation.
 */
export declare function parseCodexYaml(source: string): Codex;
//# sourceMappingURL=parse.d.ts.map