UNPKG

@meldscience/meld

Version:

pipeable one-shot prompt scripting toolkit

13 lines (12 loc) 475 B
import { MeldDirectiveNode } from './remarkMeldDirectives'; import { Text } from 'mdast'; /** * Splits a line of text into an array of either: * - raw text nodes * - meldDirective nodes */ export declare function parseMeldDirective(value: string, file: any): Array<MeldDirectiveNode | Text>; /** * Helper that parses the `@cmd[...]` or `@import[...]` line and returns a typed node. */ export declare function buildMeldDirectiveNode(raw: string): MeldDirectiveNode;