/** * Parser for a single self-describing data-pack file. * * A pack file is either: * - a bare list — one value per line, no header; or * - a self-describing file with a metadata header fenced by `---` * lines, followed by the list body. * * Header lines are simple `key: value` pairs (no YAML/TOML dependency — * the project keeps its runtime deps to antlr4ng + jsep). Blank lines and * `#` comment lines inside the header are ignored. All header fields are * optional; the header itself is optional. * * Example: * * --- * description: Spanish male given names * address: es.person.man.firstName * locale: es * --- * Rodrigo * Fernando * Diego * * See docs/superpowers/specs/2026-07-14-data-packs-design.md. */ export interface ParsedPackFile { /** True when a `---`-fenced header block was present. */ readonly hasHeader: boolean; /** Parsed `key: value` header fields (lowercased keys). Empty if none. */ readonly header: Readonly>; /** * 1-based line number where the body starts in the original file. * Used to attribute diagnostics to the right source line. */ readonly bodyStartLine: number; /** Body values: each non-blank line, trimmed, in order. */ readonly values: readonly string[]; } /** * Parse the text of a pack file into its header (if any) and body values. * Never throws — malformed headers are surfaced by the loader as * diagnostics, not exceptions. */ export declare function parsePackFile(content: string): ParsedPackFile; //# sourceMappingURL=parse.d.ts.map