import type { ListOptions, RuleStore, RulingListOptions, SearchOptions } from "./store.ts"; import type { BanlistEntry, Card, CardName, CardSummary, Corpus, Erratum, Game, PatchNote, Rule, RuleBook, RuleHit, Ruling, SearchAllResult, Section, Term } from "./types.ts"; /** * The corpus, held in memory. * * This is the store for a runtime with no filesystem and no SQLite, such as an * edge function. It answers exactly what the SQLite store answers and ranks with * the same family of scoring, so a caller can swap one for the other. * * The cost is memory: the whole corpus and its index stay resident. For a few * thousand rules and a thousand cards that is tens of megabytes. Prefer the * SQLite store anywhere a file is available. */ export declare class JsonStore implements RuleStore { #private; constructor(corpus: Corpus); game(): Promise; listRuleBooks(): Promise; listSections(options?: ListOptions): Promise; getRule(id: string): Promise; getRuleByNumber(ruleNumber: string, options?: { ruleBookId?: string; }): Promise; getRuleBySlug(slug: string, options?: { ruleBookId?: string; }): Promise; listRules(options?: ListOptions): Promise; searchRules(query: string, options?: SearchOptions): Promise; getChildren(id: string): Promise; getParent(id: string): Promise; getSiblings(id: string): Promise; getRelated(id: string, options?: { limit?: number; }): Promise; listTerms(options?: { limit?: number; category?: string; }): Promise; getTerm(idOrSlug: string): Promise; searchTerms(query: string, options?: { limit?: number; }): Promise; listErrata(options?: { cardName?: string; limit?: number; }): Promise; listBanlist(options?: { cardName?: string; format?: string; limit?: number; }): Promise; listPatchNotes(options?: { category?: string; limit?: number; }): Promise; getPatchNote(slugOrId: string): Promise; listRulings(options?: RulingListOptions): Promise; searchRulings(query: string, options?: { limit?: number; }): Promise; getRulingByQuestion(question: string): Promise; searchCards(query: string, options?: { limit?: number; }): Promise; getCards(ids: string[]): Promise; allCardNames(): Promise; searchAll(query: string, options?: { limit?: number; }): Promise; close(): Promise; } //# sourceMappingURL=json-store.d.ts.map