/** * Joins path segments using `/` separator. * @param segments A list of **valid** path segments. * @returns A joined path. */ export declare function generatePath(...segments: string[]): string; /** * Returns `fn(value)` spread into an object if `value` is defined, otherwise an empty object. * * Used to conditionally include a property on a payload object without * resorting to mutation or ternary-built object literals. */ export declare function spreadIfDefined>(value: T | undefined, fn: (v: T) => V): V | Record;