export type ParamsConfig = (ParamsConfigNotOptional | ParamsConfigOptional) & { options?: string[]; }; export type ParamsConfigNotOptional = { /** * Transforms param before path creation (get). */ onGet?: (value: GetValue) => string; /** * Transform's param on useParam. */ onUseParams?: (value: string) => UseValue; /** * Makes param optional */ optional?: false | undefined; }; export type ParamsConfigOptional = { /** * Transforms param before path creation (get). */ onGet?: (value: GetValue) => string; /** * Transform's param on useParam. */ onUseParams?: (value?: string) => undefined | UseValue; /** * Makes param optional */ optional: true; }; export declare class ParamPath { config?: Config; key: Key; param: string; parseParam(hasNextPath: boolean): string; } export declare const Param: >(param: K, config?: Config) => ParamPath;