import { OptionalKeys } from "utility-types"; export declare type Optionals = Pick>; /** * Throws a type error if T has keys not preset in TExpected * * Errors: `[T] is not assignable to [TError]` * * @see https://stackoverflow.com/questions/54775790/forcing-excess-property-checking-on-variable-passed-to-typescript-function */ export declare type Restrict = T & (Exclude extends never ? {} : TError);