/** * Resolves the relative path to a file referenced in a markdown file. * * @param filePath - The path to the file as used in the markdown file. * @param pageRelativePath - The relative path from the `contentDir` to the markdown file * that contains the `filePath` reference. * @param contentDir - Project content directory. * @returns The resolved relative path from the `contentDir` to the referenced file. * Absolute paths are treated as relative to `contentDir`, and relative paths * are resolved based on the location of the markdown file. * @example * // Example 1: Resolving an absolute file path * const filePath = '/images/logo.png'; * const contentDir = '/project/content'; * const pageRelativePath = 'docs/page.md'; * const result = resolvePathInMd(filePath, pageRelativePath, contentDir); * console.log(result); // 'images/logo.png' * * @example * // Example 2: Resolving a relative file path * const filePath = './assets/image.png'; * const contentDir = '/project/content'; * const pageRelativePath = 'docs/page.md'; * const result = resolvePathInMd(filePath, pageRelativePath, contentDir); * console.log(result); // 'docs/assets/image.png' * * @example * // Example 3: Resolving a file path in a sibling directory * const filePath = '../shared/config.json'; * const contentDir = '/project/content'; * const pageRelativePath = 'docs/page.md'; * const result = resolvePathInMd(filePath, pageRelativePath, contentDir); * console.log(result); // 'shared/config.json' */ export declare function resolvePathInMarkdown(filePath: string, pageRelativePath: string, contentDir: string): string; //# sourceMappingURL=resolve-path-in-markdown.d.ts.map