/** * This Remark plugin helps to adjust code meta `file`, * ensuring paths remain accurate even after file relocations or inclusions. * * When `processor.data().filePathChanges` is set, * this plugin adjusts all relative paths * for code * to ensure they are accurate. * * @packageDocumentation */ import type { Transformer, Processor } from 'unified'; declare module 'unified' { interface Data { /** * When `processor.data().filePathChanges` is set, * this plugin adjusts all relative URLs * for images, definitions, and links * to ensure they are accurate. * * @public */ filePathChanges?: { /** * markdown file path before moving or including. * If not specified, file.path used * * @public */ sourcePath?: string; /** * markdown file path after moving or including. * If not specified, / used * * @public */ destinationPath?: string; }; } } /** * This Remark plugin helps to adjust code meta `file`, * ensuring paths remain accurate even after file relocations or inclusions. * * When `processor.data().filePathChanges` is set, * this plugin adjusts all relative paths * for code * to ensure they are accurate. * * @public */ export declare function remarkRelativeCodePathsAdjustment(this: Processor): Transformer; //# sourceMappingURL=index.d.ts.map