import { OpeningCollection } from "../src/types.js"; interface EcoCategoryData { url: string; json?: OpeningCollection; } interface OpeningsByCat { initialized: boolean; A?: EcoCategoryData; B?: EcoCategoryData; C?: EcoCategoryData; D?: EcoCategoryData; E?: EcoCategoryData; IN?: EcoCategoryData; } /** * Downloads and caches opening data from the eco.json GitHub repository. * Data is fetched once and cached for subsequent calls. * * @returns Promise resolving to opening data organized by ECO category * * @example * ```typescript * const { A, B, C, D, E, IN } = await getLatestEcoJson(); * console.log(A?.json); // ecoA.json data * console.log(IN?.json); // eco_interpolated.json data * ``` */ export declare function getLatestEcoJson(): Promise; /** * Downloads and merges all opening data (ecoA-E + interpolated) into a single collection. * Data is cached after the first call. * * @returns Promise resolving to a complete opening collection keyed by FEN * * @example * ```typescript * const openings = await openingBook(); * const fen = "rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3"; * console.log(openings[fen]); // Opening data for this position * ``` */ export declare function openingBook(): Promise; export {}; //# sourceMappingURL=getLatestEcoJson.d.ts.map