/** * Check whether a source string is a URL. */ export declare function isUrl(source: string): boolean; /** * Read markdown content from a local file. */ export declare function readLocalFile(filePath: string): string; /** * Fetch markdown content from a remote URL. */ export declare function fetchRemoteFile(url: string): Promise; /** * Read markdown from either a local file path or a remote URL. */ export declare function readMarkdownSource(source: string): Promise; /** * Check if a path is a directory. */ export declare function isDirectory(path: string): boolean; /** * Represents a file entry in a folder structure. */ export interface FileEntry { path: string; relativePath: string; name: string; isMarkdown: boolean; } /** * Represents a folder structure with files and subfolders. */ export interface FolderStructure { name: string; path: string; relativePath: string; files: FileEntry[]; subfolders: FolderStructure[]; } /** * Recursively read a folder structure with all markdown files. */ export declare function readFolderStructure(folderPath: string, baseFolder?: string): FolderStructure; //# sourceMappingURL=markdown.d.ts.map