export function APIPathGen( obj: T, callback: (path: string[], tail: V, pathParam?: Record) => unknown, pathParam?: Record ): T; export function StrVar(paramKey: string): (next: NextCall) => { [v in PathType]: NextCall }; export function NumVar(paramKey: string, next: NextCall): { [v: number]: NextCall }; /* const apiPath = { SomePath: someFunc, User: StrVar<'a'|'b'>('name')({ Update: someFunc, Delete: someFunc, }), NationInfo: NumVar('id', { show: someFunc }) } */