/** * A small BibTeX / BibLaTeX reader: entries, `@string` macros, `#` * concatenation, braced and quoted values, name lists, LaTeX accents and * dashes — enough for what Zotero, JabRef, Mendeley and Google Scholar * export. Entries become CSL-JSON items. */ import type { CslItem, CslName } from './types.js'; /** LaTeX markup of a field value as plain text: accents composed, * escapes and dashes resolved, braces dropped. */ export declare function latexToText(value: string): string; /** The name that ends a list cut short: BibTeX's `and others`, written * `{literal: others}` as Pandoc writes it (#533). A style prints "et al." * in its place. */ export declare const ET_AL_NAME: CslName; /** Whether `name` stands for the names left out (`others`). */ export declare function isEtAlName(name: CslName | undefined): boolean; /** A diagnostic of the reader: what it skipped and where. */ export interface BibtexIssue { message: string; /** Offset in the source. */ at: number; } /** The CSL-JSON items of a BibTeX / BibLaTeX source. */ export declare function parseBibtex(source: string, issues?: BibtexIssue[]): CslItem[]; //# sourceMappingURL=bibtex.d.ts.map