/** * @file * * The two media facts Obsidian's renderers share: which extensions count as an image, and how a desktop * `file:///` source is turned into a path the renderer can load. */ /** * The extensions Obsidian treats as an image, its own `IMAGE_EXTENSIONS` list. */ export declare const IMAGE_EXTENSIONS: string[]; /** * Rewrites a desktop `file:///` source onto Obsidian's resource-path prefix, as the app does before handing * it to an `img`, an `audio` or a `video`. * * Every other source - and every source at all on mobile, where Obsidian does not apply this - is returned * unchanged, so the caller can pass any source through. * * @param source - The source to rewrite. * @returns The rewritten source, or `source` itself when it is not a desktop file URL. */ export declare function toDesktopResourcePath(source: string): string;