import type { AnyArray, ArrayItem, EmptyTuple } from "../../types/array"; import type { Merge, StringKey, UnionToIntersection } from "../../types/converts"; import type { AnyPrototype, EmptyObject, FrozenObject, NonExtensibleObject, SealedObject } from "../../types/object"; declare type DefinedProperties>> = { [K in keyof Descriptors]: Descriptors[K] extends TypedPropertyDescriptor ? P : never; }; declare type PropertyDescriptors = Record>; declare type DefinedProperty = { [Key in K]: P; }; declare type ConstructFromEntries = Entries extends EmptyTuple ? EmptyObject : Entries extends readonly [infer F, ...infer R] ? F extends readonly [infer K, infer V] ? R extends readonly (readonly [PropertyKey, unknown])[] ? K extends PropertyKey ? Merge, DefinedProperty> : never : never : never : Record[0], ArrayItem[1]>; export interface ITypedObject { getPrototypeOf(target: T): Partial | null; getOwnPropertyDescriptor(obj: T, key: K): TypedPropertyDescriptor | undefined; getOwnPropertyNames(target: T): StringKey[]; create(prototype: T): T extends null ? EmptyObject : T; create(prototype: T, descriptors: Descriptors): Merge, T extends null ? EmptyObject : T>; defineProperty(obj: T, key: K, descriptor: TypedPropertyDescriptor

): asserts obj is DefinedProperty & T; defineProperties(obj: T, descriptors: Descriptors): asserts obj is DefinedProperties & T; seal(target: T): asserts target is SealedObject; freeze(target: T): asserts target is FrozenObject; preventExtensions(target: T): asserts target is NonExtensibleObject; isSealed(obj: T): obj is SealedObject; isFrozen(obj: T): obj is FrozenObject; isExtensible(obj: T): boolean; keys(obj: T): StringKey[]; entries(obj: T): { [K in StringKey]: [K, T[K]]; }[StringKey][]; values(obj: T): { [K in StringKey]: T[K]; }[StringKey][]; getOwnPropertyDescriptors(obj: T): { [K in keyof T]?: TypedPropertyDescriptor; }; assign(source: T, ...patch: Patches): asserts source is T & UnionToIntersection>; fromEntries(entries: Entries): ConstructFromEntries; setPrototypeOf(obj: T, prototype: Prototype): asserts obj is T & (Prototype extends null ? unknown : Prototype); } declare const TypedObject: ITypedObject; export { TypedObject }; //# sourceMappingURL=object.d.ts.map