/** * [[include:src/codecs/json5/README.md]] * * @module codecs/json5 */ import stencila from '@stencila/schema'; import * as vfile from '../../util/vfile'; import { Codec } from '../types'; export declare class Json5Codec extends Codec implements Codec { /** * The media types that this codec can decode/encode. */ readonly mediaTypes: string[]; /** * Decode a `VFile` with JSON5 content to a Stencila `Node`. * * @param file The `VFile` to decode * @returns A promise that resolves to a Stencila `Node` */ readonly decode: (file: vfile.VFile) => Promise; /** * Encode a Stencila `Node` to a `VFile` with JSON5 content. * * @param thing The Stencila `Node` to encode * @returns A promise that resolves to a `VFile` */ readonly encode: (node: stencila.Node) => Promise; }