@emanuelsan/mosaic-js
Version:
Composable Markdown-based AI instruction engine for Node.js
31 lines • 995 B
TypeScript
import { Effect } from "effect";
export interface ParsedMarkdownTemplate {
path: string;
frontmatter: Record<string, any> | null;
content: string;
variables: string[];
references: string[];
}
export declare const extractReferencesFromContent: (content: string, options?: {
currentPath?: string;
ancestors?: string[];
removeLoopedReferences?: boolean;
normalizeInContent?: boolean;
}) => Effect.Effect<{
references: string[];
content: string;
}, never, import("./normalizeToRelativeSelector").Directory>;
export declare const parseMarkdown: (templateSelector: string) => Effect.Effect<{
path: string;
frontmatter: Record<string, any> | null;
content: string;
variables: string[];
references: string[];
} | {
path: string;
frontmatter: null;
content: string;
variables: never[];
references: never[];
}, never, import("./normalizeToRelativeSelector").Directory>;
//# sourceMappingURL=parseMarkdownTemplate.d.ts.map