import type {HasSplat} from "./has-splat.js" import type {ParamsFromPath} from "./params-from-path.js" export type RouteFor = ( params: ParamsFromPath, ...subpath: HasSplat extends true ? [subpath: string] : [] ) => unknown