import { DataObject } from 'json2md'; import { TContentType } from './kinds/model'; import { SetPartialKeys } from '../../../types'; import { Project } from '../project'; import * as kinds from './kinds'; type TContentKind = { attachment: kinds.AttachmentContent; sources: kinds.SourcesContent; article: kinds.ArticleContent; tasks: kinds.TasksContent; rules: kinds.RulesContent; group: kinds.GroupContent; plain: kinds.PlainContent; }[K]; export declare class ContentFactory { private project?; constructor(project?: Project | undefined); /** Creates `## Article` with nested content */ article(title: string, content: DataObject[]): kinds.ArticleContent; /** Creates rules list */ rules(list: string[]): kinds.RulesContent; /** Creates tasks list */ tasks(list: string[]): kinds.TasksContent; /** Creates sources links list */ sources(list: kinds.SourcesContent['TSchema']): kinds.SourcesContent; /** Creates plain markdown */ plain(payload: string): kinds.PlainContent; attachment(title: string, payload: Omit, 'title'>): kinds.AttachmentContent; file(title: string, location: string | string[]): Promise; /** Reads files by pattern and creates attachments for each file */ glob(title: string, pattern: string): Promise; static build(project?: Project): ContentFactory; static is(type: K, content: unknown): content is TContentKind; } export {}; //# sourceMappingURL=factory.d.ts.map