/** * Configuration options for embed command operations. * * Controls the behaviour of the embed command, which inlines local image files as base64 data URIs. * * @category Commands */ export interface EmbedOptions { /** Perform a dry run without making actual changes */ dryRun?: boolean; /** Enable verbose output with detailed progress information */ verbose?: boolean; /** Output results in JSON format instead of the human-readable summary */ json?: boolean; } /** * Summary of an embed run, in the shape emitted by `--json`. * * @category Commands */ export interface EmbedSummary { /** Always "embed", so JSON consumers can identify the command */ command: "embed"; /** Whether the run completed without errors */ success: boolean; /** Whether this was a dry run, so no files were touched */ dryRun: boolean; /** Number of markdown files examined */ filesProcessed: number; /** Markdown files whose content was rewritten (empty in a dry run) */ filesModified: string[]; /** Number of image links rewritten to data URIs */ imagesEmbedded: number; /** Image files removed because nothing in the processed set references them (empty in a dry run) */ imagesDeleted: string[]; /** Image files kept because a file in the processed set still references them */ imagesKept: string[]; /** Error messages, one per failure */ errors: string[]; /** Warning messages */ warnings: string[]; } /** * CLI command handler for embed operations. * * Converts linked local images in markdown files to inline base64 data URIs. Each referenced image * file is read, base64-encoded, and the markdown link rewritten to the data URI. An image file is * removed once no file in the processed set references it any more. * * @category Commands * * @example * ```bash # Inline every local image in a document markmv embed doc.md * * # Preview the rewrites without touching anything markmv embed docs/*.md --dry-run ```; * * @param patterns - File patterns to process (supports globs) * @param options - Command options * * @throws Will exit the process with code 1 if the operation fails */ export declare function embedCommand(patterns: string[], options: EmbedOptions): Promise; //# sourceMappingURL=embed.d.ts.map