import Ast from './src/ast'; import Node from './src/ast/node'; import format from './src/formatter'; import functions from './src/functions'; import * as nodes from './src/schema'; import renderers from './src/renderers'; import Tag from './src/tag'; import tags from './src/tags'; import { truthy } from './src/tags/conditional'; import Tokenizer from './src/tokenizer'; import transformer, { globalAttributes } from './src/transformer'; import transforms from './src/transforms'; import { parseTags } from './src/utils'; import validator from './src/validator'; import type { ParserArgs } from './src/types'; import type Token from 'markdown-it/lib/token'; import type { Config, RenderableTreeNode, ValidateError } from './src/types'; export * from './src/types'; export declare function parse(content: string | Token[], args?: string | ParserArgs): Node; export declare function resolve(content: Node, config: C): Node; export declare function resolve(content: Node[], config: C): Node[]; export declare function transform(node: Node, config?: C): RenderableTreeNode; export declare function transform(nodes: Node[], config?: C): RenderableTreeNode[]; export declare function validate(node: Node, options?: C): ValidateError[]; export declare function createElement(name: string | { key?: string | number; }, attributes?: {}, ...children: any[]): { name: string | { key?: string | number; }; attributes: {}; children: any[]; }; export { nodes, tags, functions, globalAttributes, transforms, renderers, Ast, Node, Tag, Tokenizer, parseTags, transformer, validator, truthy, format, }; export default class Markdoc { static nodes: typeof nodes; static tags: { else: import("./src/types").Schema; if: import("./src/types").Schema; partial: import("./src/types").Schema; slot: import("./src/types").Schema; table: import("./src/types").Schema; }; static functions: { and: import("./src/types").ConfigFunction; or: import("./src/types").ConfigFunction; not: import("./src/types").ConfigFunction; equals: import("./src/types").ConfigFunction; default: import("./src/types").ConfigFunction; debug: import("./src/types").ConfigFunction; }; static globalAttributes: Record | undefined; static renderers: { html: typeof import("./src/renderers/html").default; react: typeof import("./src/renderers/react/react").default; reactStatic: typeof import("./src/renderers/react/static").default; }; static transforms: typeof import("./src/transforms/table").default[]; static Ast: { fromJSON: (text: string) => Node | Node[]; isAst(value?: any): value is import("./src/types").AstType; isFunction(value?: any): value is import("./src/types").Function; isVariable(value?: any): value is import("./src/types").Variable; getAstValues(value: any): Generator; resolve(value: any, config?: Config): any; Function: typeof import("./src/ast/function").default; Node: typeof Node; Variable: typeof import("./src/ast/variable").default; }; static Tag: typeof Tag; static Tokenizer: typeof Tokenizer; static parseTags: typeof parseTags; static transformer: import("./src/types").Transformer; static validator: typeof validator; static parse: typeof parse; static transform: typeof transform; static validate: typeof validate; static createElement: typeof createElement; static truthy: typeof truthy; static format: typeof format; config: Readonly, string>>>; tags: Record; variables: Record; functions: Record; partials: Record; validation?: { parents?: Node[]; validateFunctions?: boolean; environment?: string; }; }>>; constructor(config: Config); parse: typeof parse; resolve: (content: Parameters[0]) => Node[]; transform: (content: Parameters[0]) => RenderableTreeNode[]; validate: (content: Parameters[0]) => ValidateError[]; } //# sourceMappingURL=index.d.ts.map