UNPKG

docutils-ts

Version:

Port of the Python Docutils library to TypeScript

14 lines (13 loc) 598 B
import { Document } from "../../types.js"; import { RSTLanguage } from "./types.js"; export declare function uri(argument: string): string; declare function directive(directiveName: string, document: Document, languageModule?: RSTLanguage): any[]; /** * Convert the argument into a list of ID-compatible strings and return it. * (Directive option conversion function.) * * Raise ``ValueError`` if no argument is found. */ declare function class_option(argument: any): never[]; declare function choice(argument: string, values: string[]): string; export { choice, directive, class_option };