import { Writable } from "type-fest"; //#region src/functions/invert/invert.d.ts /** * Inverts the keys and values of an object. * @param object The object to invert. * @returns A new object with the keys and values inverted. * * If the object has duplicate values, the last key will be used. * @example * ```typescript * invert({ * a: 'x', * b: 'y', * c: 'z' * }); // { x: 'a', y: 'b', z: 'c' } * ``` */ declare function invert>(object: T): Writable>; type Inverted> = { [K in keyof T as T[K]]: K }; //#endregion export { invert as t }; //# sourceMappingURL=invert-CgZ5KHj0.d.ts.map