import { z } from "zod"; /** * The corpus format version. * * Every file in a corpus directory carries this number. The loader refuses a * number it does not know rather than reading the file anyway: a field that * moved between versions would otherwise arrive as `undefined`, and a rules * assistant that silently loses `content` answers every question from nothing. * * Bump it whenever a field is renamed, removed, or changes meaning. Adding an * optional field does not need a bump, because an older corpus still reads. */ export declare const SCHEMA_VERSION = 2; /** The corpus names itself and nothing else. Presentation belongs in the profile. */ export declare const gameSchema: z.ZodObject<{ slug: z.ZodString; name: z.ZodString; }, z.core.$strip>; export declare const ruleBookSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodPipe>, z.ZodTransform>; slug: z.ZodPipe>, z.ZodTransform>; version: z.ZodPipe>, z.ZodTransform>; effective_date: z.ZodPipe>, z.ZodTransform>; is_active: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>; export declare const sectionSchema: z.ZodObject<{ id: z.ZodString; rule_book_id: z.ZodString; section_number: z.ZodPipe>, z.ZodTransform>; title: z.ZodPipe>, z.ZodTransform>; slug: z.ZodPipe>, z.ZodTransform>; description: z.ZodPipe>, z.ZodTransform>; display_order: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>; /** * One rule. * * `parent_id` is the load-bearing field, and it is why a corpus cannot be built * from rule numbers alone. Rule numbers repeat across rulebooks, so the same * number can name two rules with two different parents. The link is data, not * something a reader may infer. * * `rule_type` separates a real rule from a section header. Roughly one row in * five is a header with empty `content`, and a search that cannot skip them * returns blank results at the top. */ export declare const ruleSchema: z.ZodObject<{ id: z.ZodString; rule_book_id: z.ZodString; section_id: z.ZodPipe>, z.ZodTransform>; parent_id: z.ZodPipe>, z.ZodTransform>; rule_number: z.ZodPipe>, z.ZodTransform>; slug: z.ZodPipe>, z.ZodTransform>; title: z.ZodPipe>, z.ZodTransform>; content: z.ZodPipe>, z.ZodTransform>; example: z.ZodPipe>, z.ZodTransform>; depth: z.ZodPipe>, z.ZodTransform>; display_order: z.ZodPipe>, z.ZodTransform>; rule_type: z.ZodPipe>, z.ZodTransform>; keywords: z.ZodPipe, z.ZodNull, z.ZodUndefined]>>, z.ZodTransform>; cross_references: z.ZodPipe, z.ZodNull, z.ZodUndefined]>>, z.ZodTransform>; is_deprecated: z.ZodPipe>, z.ZodTransform>; deprecation_note: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>; export declare const termSchema: z.ZodObject<{ id: z.ZodString; term: z.ZodString; slug: z.ZodPipe>, z.ZodTransform>; definition: z.ZodPipe>, z.ZodTransform>; short_definition: z.ZodPipe>, z.ZodTransform>; category: z.ZodPipe>, z.ZodTransform>; aliases: z.ZodPipe, z.ZodNull, z.ZodUndefined]>>, z.ZodTransform>; defining_rule_id: z.ZodPipe>, z.ZodTransform>; defining_rule_number: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>; /** The card identity an errata or banlist row carries inline. */ export declare const cardRefSchema: z.ZodObject<{ id: z.ZodPipe>, z.ZodTransform>; name: z.ZodPipe>, z.ZodTransform>; png_uri: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>; export declare const erratumSchema: z.ZodObject<{ id: z.ZodString; card: z.ZodDefault>, z.ZodTransform>; name: z.ZodPipe>, z.ZodTransform>; png_uri: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>, z.ZodNull]>>>; effective_date: z.ZodPipe>, z.ZodTransform>; original_text: z.ZodPipe>, z.ZodTransform>; errata_text: z.ZodPipe>, z.ZodTransform>; explanation: z.ZodPipe>, z.ZodTransform>; patch_note_slug: z.ZodPipe>, z.ZodTransform>; patch_note_title: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>; export declare const banlistEntrySchema: z.ZodObject<{ id: z.ZodString; card: z.ZodDefault>, z.ZodTransform>; name: z.ZodPipe>, z.ZodTransform>; png_uri: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>, z.ZodNull]>>>; format: z.ZodPipe>, z.ZodTransform>; name: z.ZodPipe>, z.ZodTransform>; slug: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>, z.ZodNull, z.ZodUndefined]>>, z.ZodTransform<{ id: string | null; name: string | null; slug: string | null; } | null, { id: string | null; name: string | null; slug: string | null; } | null | undefined>>; entry_type: z.ZodPipe>, z.ZodTransform>; effective_date: z.ZodPipe>, z.ZodTransform>; reason: z.ZodPipe>, z.ZodTransform>; patch_note_slug: z.ZodPipe>, z.ZodTransform>; patch_note_title: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>; export declare const patchNoteSchema: z.ZodObject<{ id: z.ZodString; slug: z.ZodPipe>, z.ZodTransform>; title: z.ZodPipe>, z.ZodTransform>; version: z.ZodPipe>, z.ZodTransform>; effective_date: z.ZodPipe>, z.ZodTransform>; category: z.ZodPipe>, z.ZodTransform>; summary: z.ZodPipe>, z.ZodTransform>; body: z.ZodPipe>, z.ZodTransform>; affected_rule_ids: z.ZodPipe, z.ZodNull, z.ZodUndefined]>>, z.ZodTransform>; affected_card_ids: z.ZodPipe, z.ZodNull, z.ZodUndefined]>>, z.ZodTransform>; }, z.core.$strip>; /** The three kinds a ruling can be. An unknown value reads as "general". */ export declare const RULING_KINDS: readonly ["card", "general", "policy"]; /** * One ruling: a question, an answer, and the rules the answer rests on. * * A ruling is not a rule, and it is not an erratum. A rule is the published * text. An erratum changes that text. A ruling reads the unchanged text and * says what it means in one case, so it carries a question and an answer where * the other two carry statements. * * `kind` separates the three uses a ruling gets. A `card` ruling answers a * question about named pieces. A `general` ruling answers one about a mechanic * or a timing, and names no piece. A `policy` ruling covers running a game * rather than playing one: registration, penalties, and conduct. The three * carry different authority, so a reader has to be able to tell them apart. * * `is_official` is false unless a corpus says otherwise, because most rulings * anybody can collect are somebody's careful reading rather than a publisher's * word. Claiming an authority nobody granted is the one failure here that a * reader cannot detect. * * An absent `kind` reads as "general". A `kind` this file does not know DROPS * the row and reports it, and that is the one place this file refuses to guess. * The other fields fall back because an absent one means "this game has none". * A misspelt `kind` means the opposite: the writer said something specific and * got it wrong. Falling back to "general" would file a card ruling where no * card lookup ever reaches it, and nothing downstream could tell. */ export declare const rulingSchema: z.ZodObject<{ id: z.ZodString; kind: z.ZodPipe>, z.ZodTransform>, z.ZodEnum<{ card: "card"; general: "general"; policy: "policy"; }>>; question: z.ZodString; answer: z.ZodString; cards: z.ZodPipe>, z.ZodTransform>; name: z.ZodPipe>, z.ZodTransform>; png_uri: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>>, z.ZodNull, z.ZodUndefined]>>, z.ZodTransform<{ id: string | null; name: string | null; png_uri: string | null; }[], { id: string | null; name: string | null; png_uri: string | null; }[] | null | undefined>>; rule_numbers: z.ZodPipe, z.ZodNull, z.ZodUndefined]>>, z.ZodTransform>; topic: z.ZodPipe>, z.ZodTransform>; source_name: z.ZodPipe>, z.ZodTransform>; source_url: z.ZodPipe>, z.ZodTransform>; is_official: z.ZodPipe>, z.ZodTransform>; effective_date: z.ZodPipe>, z.ZodTransform>; is_deprecated: z.ZodPipe>, z.ZodTransform>; deprecation_note: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>; /** * One card, trimmed to what a rules answer needs. * * Only identity is fixed, because only identity is the same in every game. A * card's text boxes and its printed attributes are exactly the parts that * differ, so each is a map you name yourself: a game with Attack and Defence * writes those keys, another writes Might and Energy, and neither has to * pretend to be the other or carry the other's empty columns. * * **`text` usually holds more than one box.** An equipment card commonly prints * almost nothing in its own box and everything in the box its holder gains, so * an assistant reading one box reports that the card does nothing. Name every * box you use in the profile's `cards.textFields` and all of them get read. */ export declare const cardSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; type_line: z.ZodPipe>, z.ZodTransform>; rarity: z.ZodPipe>, z.ZodTransform>; set_name: z.ZodPipe>, z.ZodTransform>; png_uri: z.ZodPipe>, z.ZodTransform>; tags: z.ZodPipe, z.ZodNull, z.ZodUndefined]>>, z.ZodTransform>; text: z.ZodPipe, z.ZodNull, z.ZodUndefined]>>, z.ZodTransform<{ [k: string]: string; }, Record | null | undefined>>; stats: z.ZodPipe, z.ZodNull, z.ZodUndefined]>>, z.ZodTransform<{ [k: string]: unknown; }, Record | null | undefined>>; }, z.core.$strip>; /** Every collection file on disk. The key is also the file name, without `.json`. */ export declare const COLLECTION_SCHEMAS: { readonly rulebooks: z.ZodObject<{ id: z.ZodString; name: z.ZodPipe>, z.ZodTransform>; slug: z.ZodPipe>, z.ZodTransform>; version: z.ZodPipe>, z.ZodTransform>; effective_date: z.ZodPipe>, z.ZodTransform>; is_active: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>; readonly sections: z.ZodObject<{ id: z.ZodString; rule_book_id: z.ZodString; section_number: z.ZodPipe>, z.ZodTransform>; title: z.ZodPipe>, z.ZodTransform>; slug: z.ZodPipe>, z.ZodTransform>; description: z.ZodPipe>, z.ZodTransform>; display_order: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>; readonly rules: z.ZodObject<{ id: z.ZodString; rule_book_id: z.ZodString; section_id: z.ZodPipe>, z.ZodTransform>; parent_id: z.ZodPipe>, z.ZodTransform>; rule_number: z.ZodPipe>, z.ZodTransform>; slug: z.ZodPipe>, z.ZodTransform>; title: z.ZodPipe>, z.ZodTransform>; content: z.ZodPipe>, z.ZodTransform>; example: z.ZodPipe>, z.ZodTransform>; depth: z.ZodPipe>, z.ZodTransform>; display_order: z.ZodPipe>, z.ZodTransform>; rule_type: z.ZodPipe>, z.ZodTransform>; keywords: z.ZodPipe, z.ZodNull, z.ZodUndefined]>>, z.ZodTransform>; cross_references: z.ZodPipe, z.ZodNull, z.ZodUndefined]>>, z.ZodTransform>; is_deprecated: z.ZodPipe>, z.ZodTransform>; deprecation_note: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>; readonly terms: z.ZodObject<{ id: z.ZodString; term: z.ZodString; slug: z.ZodPipe>, z.ZodTransform>; definition: z.ZodPipe>, z.ZodTransform>; short_definition: z.ZodPipe>, z.ZodTransform>; category: z.ZodPipe>, z.ZodTransform>; aliases: z.ZodPipe, z.ZodNull, z.ZodUndefined]>>, z.ZodTransform>; defining_rule_id: z.ZodPipe>, z.ZodTransform>; defining_rule_number: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>; readonly errata: z.ZodObject<{ id: z.ZodString; card: z.ZodDefault>, z.ZodTransform>; name: z.ZodPipe>, z.ZodTransform>; png_uri: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>, z.ZodNull]>>>; effective_date: z.ZodPipe>, z.ZodTransform>; original_text: z.ZodPipe>, z.ZodTransform>; errata_text: z.ZodPipe>, z.ZodTransform>; explanation: z.ZodPipe>, z.ZodTransform>; patch_note_slug: z.ZodPipe>, z.ZodTransform>; patch_note_title: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>; readonly banlist: z.ZodObject<{ id: z.ZodString; card: z.ZodDefault>, z.ZodTransform>; name: z.ZodPipe>, z.ZodTransform>; png_uri: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>, z.ZodNull]>>>; format: z.ZodPipe>, z.ZodTransform>; name: z.ZodPipe>, z.ZodTransform>; slug: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>, z.ZodNull, z.ZodUndefined]>>, z.ZodTransform<{ id: string | null; name: string | null; slug: string | null; } | null, { id: string | null; name: string | null; slug: string | null; } | null | undefined>>; entry_type: z.ZodPipe>, z.ZodTransform>; effective_date: z.ZodPipe>, z.ZodTransform>; reason: z.ZodPipe>, z.ZodTransform>; patch_note_slug: z.ZodPipe>, z.ZodTransform>; patch_note_title: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>; readonly "patch-notes": z.ZodObject<{ id: z.ZodString; slug: z.ZodPipe>, z.ZodTransform>; title: z.ZodPipe>, z.ZodTransform>; version: z.ZodPipe>, z.ZodTransform>; effective_date: z.ZodPipe>, z.ZodTransform>; category: z.ZodPipe>, z.ZodTransform>; summary: z.ZodPipe>, z.ZodTransform>; body: z.ZodPipe>, z.ZodTransform>; affected_rule_ids: z.ZodPipe, z.ZodNull, z.ZodUndefined]>>, z.ZodTransform>; affected_card_ids: z.ZodPipe, z.ZodNull, z.ZodUndefined]>>, z.ZodTransform>; }, z.core.$strip>; readonly cards: z.ZodObject<{ id: z.ZodString; name: z.ZodString; type_line: z.ZodPipe>, z.ZodTransform>; rarity: z.ZodPipe>, z.ZodTransform>; set_name: z.ZodPipe>, z.ZodTransform>; png_uri: z.ZodPipe>, z.ZodTransform>; tags: z.ZodPipe, z.ZodNull, z.ZodUndefined]>>, z.ZodTransform>; text: z.ZodPipe, z.ZodNull, z.ZodUndefined]>>, z.ZodTransform<{ [k: string]: string; }, Record | null | undefined>>; stats: z.ZodPipe, z.ZodNull, z.ZodUndefined]>>, z.ZodTransform<{ [k: string]: unknown; }, Record | null | undefined>>; }, z.core.$strip>; readonly rulings: z.ZodObject<{ id: z.ZodString; kind: z.ZodPipe>, z.ZodTransform>, z.ZodEnum<{ card: "card"; general: "general"; policy: "policy"; }>>; question: z.ZodString; answer: z.ZodString; cards: z.ZodPipe>, z.ZodTransform>; name: z.ZodPipe>, z.ZodTransform>; png_uri: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>>, z.ZodNull, z.ZodUndefined]>>, z.ZodTransform<{ id: string | null; name: string | null; png_uri: string | null; }[], { id: string | null; name: string | null; png_uri: string | null; }[] | null | undefined>>; rule_numbers: z.ZodPipe, z.ZodNull, z.ZodUndefined]>>, z.ZodTransform>; topic: z.ZodPipe>, z.ZodTransform>; source_name: z.ZodPipe>, z.ZodTransform>; source_url: z.ZodPipe>, z.ZodTransform>; is_official: z.ZodPipe>, z.ZodTransform>; effective_date: z.ZodPipe>, z.ZodTransform>; is_deprecated: z.ZodPipe>, z.ZodTransform>; deprecation_note: z.ZodPipe>, z.ZodTransform>; }, z.core.$strip>; }; export type CollectionName = keyof typeof COLLECTION_SCHEMAS; export declare const COLLECTION_NAMES: CollectionName[]; /** * Collections a directory may leave out entirely. * * Every other file must exist, because a missing one is far more often a typo * than a choice, and an empty `items` list already says "this game has none". * `rulings` is the exception only because it arrived after corpora were already * written: requiring it would stop every existing directory from loading, and * the reader would blame the corpus rather than the upgrade. * * Keep this set at one entry if you can. `rulekit validate` reports any JSON * file it does not recognise, which is what stops an absent file and a * misspelt file from looking the same. */ export declare const OPTIONAL_COLLECTIONS: ReadonlySet; /** Every file name a corpus directory may hold, with the `.json` suffix. */ export declare const KNOWN_CORPUS_FILES: readonly string[]; /** * A collection file: a version stamp and the rows. * * The version sits in the file rather than in one manifest so a directory * assembled from more than one producer still declares what each part is. */ export declare const collectionFileSchema: z.ZodObject<{ schemaVersion: z.ZodNumber; items: z.ZodArray; }, z.core.$strip>; export declare const gameFileSchema: z.ZodObject<{ schemaVersion: z.ZodNumber; game: z.ZodObject<{ slug: z.ZodString; name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; //# sourceMappingURL=schema.d.ts.map