import type { AnyArray, ArrayItem, EmptyTuple } from "./array"; import type { LiteralToPrimitive, PrimitiveTypes } from "./common"; import type { AnyFunc } from "./concepts"; import type { TemplateAllowedTypes } from "./string"; export declare type EmptyObject = {}; export declare type AnyPrototype = object | null; export declare type OmitKey = Omit; export declare type DeepReadonly = T extends PrimitiveTypes ? T : T extends AnyArray ? Readonly : { readonly [K in keyof T]: DeepReadonly; }; export declare type DeepMutable = T extends PrimitiveTypes ? LiteralToPrimitive : T extends EmptyTuple ? unknown[] : T extends AnyArray ? DeepMutable>[] : { -readonly [K in keyof T]: DeepMutable; }; export declare type DeepPartial = T extends AnyArray | AnyFunc | PrimitiveTypes ? T : { [K in keyof T]?: DeepPartial; }; export declare type AccessPaths = T extends object ? { [K in keyof T]: [K, ...AccessPaths] | [K]; }[keyof T] | [] : []; export declare type AccessByPath> = Path extends EmptyTuple ? T : Path extends readonly [infer Current, ...infer Rest] ? Current extends keyof T ? Rest extends AccessPaths ? AccessByPath : never : never : never; export declare type StringAccessKeyOf = T extends PrimitiveTypes ? never : `${Extract}`; export declare type StringAccessPaths = T extends object ? { [K in StringAccessKeyOf & keyof T]: [K, ...StringAccessPaths] | [K]; }[StringAccessKeyOf & keyof T] : []; interface NonExtensibleMixin { readonly [key: string]: never; readonly [index: number]: never; } export declare type NonExtensibleObject = NonExtensibleMixin & T; export declare type SealedObject = NonExtensibleObject; export declare type FrozenObject = NonExtensibleMixin & Readonly; export {}; //# sourceMappingURL=object.d.ts.map