import { type ObjectKey, type SimplifyTopLevel } from "../common"; import { type Adaptor } from "../common/types/adaptor"; import { type GetPropsWithValue } from "./types/getPropsWithValue"; import { type PartialKeys } from "./types"; type ComputeResultWithOmitIsObject>> = SimplifyTopLevel> extends infer InferredValue extends object ? PartialKeys | GetPropsWithValue | GetPropsWithValue, keyof InferredValue>> : never>; /** * Removes properties from an object. * * **Supported call styles:** * - Classic: `omit(input, omitValue)` → returns a new object * - Curried: `omit(omitValue)` → returns a function waiting for the input * * The `omitValue` can be a key array or a map of keys to booleans. * The input object is not mutated. * * ```ts * O.omit( * { * name: "Ada", * age: 36, * }, * ["age"], * ); // { name: "Ada" } * * O.omit( * { * name: "Ada", * age: 36, * active: true, * }, * { * active: true, * }, * ); // { name: "Ada", age: 36 } * * pipe( * { * role: "admin", * level: 3, * }, * O.omit(["level"]), * ); // { role: "admin" } * * ``` * * @see [`O.pick`](https://utils.duplojs.dev/en/v1/api/object/pick) For selecting keys * @see https://utils.duplojs.dev/en/v1/api/object/omit * * @namespace O * */ export declare function omit> | readonly (keyof GenericInput)[]>(omitValue: GenericOmitValue): (input: GenericInput) => GenericOmitValue extends Partial> ? ComputeResultWithOmitIsObject : SimplifyTopLevel[number]>>; export declare function omit> | readonly (keyof GenericInput)[]>(input: GenericInput, omitValue: GenericOmitValue): GenericOmitValue extends Partial> ? ComputeResultWithOmitIsObject : SimplifyTopLevel[number]>>; export {};