/** * [[include:src/codecs/rnb/README.md]] * * @module codecs/rnb */ import schema from '@stencila/schema'; import * as vfile from '../../util/vfile'; import { Codec } from '../types'; export declare class RnbCodec extends Codec implements Codec { /** * Sniff content to see if it is a R Notebook. * * For speed, rather than parsing the entire content as HTML, this * function just uses a regex to check if the content contains Rmd source code. * * @param content The content to be sniffed (may be a file path) */ readonly sniff: (content: string) => Promise; /** * Decode a R Notebook file to a Stencila `Article` */ readonly decode: (file: vfile.VFile) => Promise; readonly encode: () => Promise; }