declare type PickByValue = Pick< T, { [k in keyof T]: T[k] extends K ? k : never }[keyof T] >;