/** * Return the extension of the `path` with leading period. * * @example Usage * ```ts * import { extname } from "@std/path/windows/extname"; * import { assertEquals } from "@std/assert"; * * assertEquals(extname("file.ts"), ".ts"); * assertEquals(extname(new URL("file:///C:/foo/bar/baz.ext")), ".ext"); * ``` * * @param path The path to get the extension from. * @returns The extension of the `path`. */ export declare function extname(path: string | URL): string; //# sourceMappingURL=extname.d.ts.map