import type { CSLModuleLike, CSLNode, CiteprocEngine, CslSys, SlimCSLNode } from './types/csl'; import type { CompressedChunk } from './tools'; import { decompressChunk, inflateCSLObj } from './tools'; export { decompressChunk, inflateCSLObj }; export type { CompressedChunk, CSLModuleLike, CSLNode, CiteprocEngine, CslSys, SlimCSLNode }; export declare class CSL { private readonly styles; private readonly styleChunkCache; private readonly styleUrlCache; private readonly locales; private readonly localeChunkCache; private readonly localeUrlCache; private citeproc; /** * Return a mapping of all bundled style IDs to their human-readable titles. */ getStyles(): Promise>; /** * Create a citeproc Engine asynchronously, downloading the style and locale * if they have not been loaded yet. */ getEngine(originalSys: CslSys, styleId: string | CSLNode, lang?: string, forceLang?: string): Promise; /** * Create a citeproc Engine synchronously from already cached downloads. * Returns `false` if the required style or locale is not cached yet. */ getEngineSync(originalSys: CslSys, styleId: string | CSLNode, lang?: string, forceLang?: string): CiteprocEngine | false; /** * Load the citeproc module on demand. */ getCiteproc(): Promise; /** * Resolve a style identifier to the inflated CSL node expected by citeproc-js. * If an already inflated style object is passed in, it is returned as-is. */ getStyle(styleId: string | CSLNode): Promise; /** * Resolve the locale for a given style and language. */ getLocale(style: CSLNode, lang?: string, forceLang?: string): Promise; } //# sourceMappingURL=index.d.ts.map