import { Equal } from "./types/utils.js"; import { Pages } from "./types/register.js"; //#region lib/href.d.ts type Args = { [K in keyof Pages]: ToArgs }; type ToArgs> = Equal extends true ? [] : Partial extends Params ? [Params] | [] : [Params]; /** Returns a resolved URL path for the specified route. ```tsx const h = href("/:lang?/about", { lang: "en" }) // -> `/en/about` ``` */ declare function href(path: Path, ...args: Args[Path]): string; //#endregion export { href };