import '@citation-js/plugin-bibtex'; import '@citation-js/plugin-csl'; export type CSL = { type?: 'article-journal' | string; id: string; author?: { given: string; family: string; literal?: string; }[]; issued?: { 'date-parts'?: number[][]; literal?: string; }; accessed?: { 'date-parts'?: number[][]; literal?: string; }; publisher?: string; title?: string; 'citation-key'?: string; 'container-title'?: string; abstract?: string; DOI?: string; URL?: string; ISBN?: string; ISSN?: string; issue?: string; keyword?: string; page?: string; volume?: string; } & Record; export type InlineNode = { type: string; value?: string; children?: InlineNode[]; }; export declare function createSanitizer(): { cleanCitationHtml(htmlStr: string): string; }; export declare enum CitationJSStyles { 'apa' = "citation-apa", 'vancouver' = "citation-vancouver", 'harvard' = "citation-harvard1" } export declare enum InlineCite { 'p' = "p", 't' = "t" } export declare function yearFromCitation(data: CSL): string | number; export declare function getInlineCitation(data: CSL, kind: InlineCite, opts?: InlineOptions): ({ type: string; value: string; children?: undefined; } | { type: string; children: { type: string; value: string; }[]; value?: undefined; })[]; export type InlineOptions = { prefix?: string; suffix?: string; partial?: 'author' | 'year'; }; export type CitationRenderer = Record string; inline: (kind?: InlineCite, opts?: InlineOptions) => InlineNode[]; getDOI: () => string | undefined; getURL: () => string | undefined; cite: CSL; getLabel: () => string; exportBibTeX: () => string; }>; export declare function firstNonDoiUrl(str?: string, doi?: string): string | undefined; /** * Parse a BibTeX string into an array of CSL items * * @param source - BibTeX string * */ export declare function parseBibTeX(source: string): CSL[]; /** * Parse CSL-JSON into an array of "clean" CSL items * * @param source - array of unclean CSL items */ export declare function parseCSLJSON(source: object[]): CSL[]; /** * Compatability shim for existing callers of getCitations * Replaced by getCitationRenderers * * @param bibtex - BibTeX string */ export declare function getCitations(bibtex: string): Promise; /** * Build renderers for the given array of CSL items * * @param data - array of CSL items */ export declare function getCitationRenderers(data: CSL[]): CitationRenderer; //# sourceMappingURL=index.d.ts.map