/** * Registry of compiled/machine formats that can be bundled inside a GCR package. * * Mirrors the Ruby glossarist gem's GcrPackage::COMPILED_EXTENSIONS: * tbx → TBX-Basic XML (ISO 30042) * jsonld → JSON-LD (SKOS vocabulary) * turtle → Turtle/RDF (SKOS vocabulary) * jsonl → JSON Lines (one concept per line) */ /** * Maps format name to the file extension used inside the GCR `compiled/` directory. * Keys are the canonical format identifiers; values are the extension including * the leading dot (for simple lookup) or the multi-part extension for TBX. * @type {ReadonlyMap} */ declare const COMPILED_EXTENSIONS: Readonly>; /** Canonical format identifiers, in a stable order. */ declare const COMPILED_FORMATS: readonly string[]; /** * Returns the filename (without directory) for a compiled-format entry. * * @param {string} format - e.g. 'tbx', 'jsonld' * @param {string} id - concept ID or document name (e.g. '3.1.1.1', 'glossary') * @returns {string} e.g. '3.1.1.1.jsonld', 'glossary.tbx.xml' */ declare function compiledFilename(format: string, id: string): string; /** * Returns the full ZIP path for a compiled-format entry. */ declare function compiledPath(format: string, id: string): string; /** * Checks whether a format name is a known compiled format. */ declare function isKnownFormat(format: string): boolean; /** * Extracts the entry ID (concept ID or document name) from a compiled-format ZIP path. */ declare function parseCompiledPath(zipPath: string): { format: string; id: string; } | null; export { COMPILED_EXTENSIONS, COMPILED_FORMATS, compiledFilename, compiledPath, isKnownFormat, parseCompiledPath, }; //# sourceMappingURL=compiled-format.d.ts.map