import { Key } from '../../Any/Key'; import { Update as OUpdate } from '../Update'; import { Update as LUpdate } from '../../List/Update'; import { List } from '../../List/List'; import { BuiltIn } from '../../Misc/BuiltIn'; import { Tail } from '../../List/Tail'; /** * @hidden */ declare type UpdateAt, A> = O extends BuiltIn ? O : Path extends [Key] ? O extends List ? LUpdate : O extends object ? OUpdate : O : { [K in keyof O]: K extends Path[0] ? UpdateAt, A> : O[K]; }; /** * Update in `O` the fields at `Path` with `A` * @param O to update * @param Path to be followed * @param A to update with * @returns [[Object]] * @example * ```ts * ``` */ export declare type Update, A extends any> = Path extends unknown ? UpdateAt : never; export {};