/** * Converts a URL to a local file path. * @param url - The URL to convert * @param extension - The file extension to add (with leading dot, e.g., '.html') * @returns The local file path (without leading slash) * @example * ```ts * urlToLocalPath('https://example.com/', '.html') // 'index.html' * urlToLocalPath('https://example.com/path/', '.html') // 'path/index.html' * urlToLocalPath('https://example.com/file', '.html') // 'file.html' * urlToLocalPath('https://example.com/file.js', '') // 'file.js' * ``` */ export declare function urlToLocalPath(url: string, extension: string): string;