import type { BasePath, BasePathArray, OmitByPath, PathFn, } from '../global/path.js'; import type { PropFn } from '../global/prop.js'; declare const omitPropFallback: unique symbol; /** * Returns an object composed of the own and inherited enumerable properties of the object that are not omitted. * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. * @param keys The property names or paths to omit. * * @example * ```typescript * const obj = { a: 1, b: 2, c: { d: [3, 4, 5] }, e: 6 }; * omit(obj, 'a', 'b'); // => { c: { d: [3, 4, 5] }, e: 6 } * omit(obj, path('c.d')); // => { a: 1, b: 2, c: {}, e: 6 } * omit(obj, prop('e'), 'a', path('c.d[1]')); // => { b: 2, c: { d: [3, 5] } } * ``` */ declare const omit: < const O extends object, const P extends typeof omitPropFallback | keyof O, const PP extends BasePath | BasePathArray = never, >( o: O, ...keys: readonly (P | PropFn | PathFn)[] ) => [PP] extends [never] ? typeof omitPropFallback extends P ? O : Omit : OmitByPath, PP>; export default omit; //# sourceMappingURL=omit.d.ts.map