UNPKG

docutils-ts

Version:

Port of the Python Docutils library to TypeScript

19 lines (18 loc) 583 B
import TransformSpec from '../transformSpec.js'; import { InputConstructorArgs } from "../types.js"; declare abstract class Input extends TransformSpec { componentType: string; supported: string[]; private successfulEncoding; private defaultSourcePath?; encoding?: string; private errorHandler?; sourcePath?: string; protected source?: any; constructor(args: InputConstructorArgs); abstract read(): Promise<string>; abstract readlines(): Promise<string[]>; decode(data: string): string; toString(): string; } export default Input;