/** * [[include:src/codecs/doi/README.md]] * * @module codecs/doi */ import schema from '@stencila/schema'; import * as vfile from '../../util/vfile'; import { Codec } from '../types'; /** * Codec for Digital Object Identifiers (DOI) * * A previous version of this codec used the `@doi/id` format of * the `CSLCodec` which is in turn based on `citation-js` and * fetches metadata for a DOI from https://data.crossref.org. * However, to use caching and retries it was switched to * using our own HTTP module and fetching data from * Crossref directly (with `decodeCsl` used for response data translation). */ export declare class DoiCodec extends Codec implements Codec { readonly mediaTypes: string[]; readonly extNames: string[]; private static regex; readonly sniff: (content: string) => Promise; readonly decode: (file: vfile.VFile) => Promise; readonly encode: () => Promise; }