/** * Creates a new object with keys and values swapped. * If multiple keys share the same value, later entries overwrite earlier ones. * * @template K - Key type of the input object (must be a PropertyKey) * @template V - Value type of the input object (must be a PropertyKey) * @param {Record} object - Source object * @returns {Record} A new object with keys and values swapped * @example * invert({ a: 1, b: 2 }); // { 1: "a", 2: "b" } */ export declare const invert: (object: Record) => Record;