/** Computes the union of keys for a path string */ export declare type PathKeys = string; /** Parameters for a given path */ export declare type PathArgs = PathKeys extends never ? unknown : KeysToArgs>; /** Like PathArgs but widened `path: string` collapses to `unknown` */ export declare type SoftPathArgs

= unknown extends P ? any : string extends P ? unknown : PathArgs

; export declare type KeysToArgs = { [K in Key]?: string | number; }; export declare type PathArgsAndSearch = PathKeys extends never ? Record | undefined : { [K in PathKeys]: string | number; } & Record; /** Removes the last :token */ export declare type ShortenPath = S; export declare type ResourcePath = string;