compose-doc.d.ts 641 B

1234567
  1. import type { Directives } from '../doc/directives.js';
  2. import { Document } from '../doc/Document.js';
  3. import type { ParsedNode } from '../nodes/Node.js';
  4. import type { DocumentOptions, ParseOptions, SchemaOptions } from '../options.js';
  5. import type * as CST from '../parse/cst.js';
  6. import type { ComposeErrorHandler } from './composer.js';
  7. export declare function composeDoc<Contents extends ParsedNode = ParsedNode, Strict extends boolean = true>(options: ParseOptions & DocumentOptions & SchemaOptions, directives: Directives, { offset, start, value, end }: CST.Document, onError: ComposeErrorHandler): Document.Parsed<Contents, Strict>;