import { IdKey } from "../core/types/common/index.js"; import { Moment } from "moment"; //#region src/common/types.d.ts /** * T1 | T2 | ... => T1 & T2 & ... */ type Intersect = (T extends any ? ((x: T) => 0) : never) extends ((x: infer R) => 0) ? R : never; type BaseOptions = { idKey?: IdKey; }; /** * The exact interface of the mongoose's ObjectId class * * Reference: `node_modules/mongoose/types/augmentations.d.ts` and `node_modules/bson/bson.d.ts` */ interface ObjectId { get _bsontype(): "ObjectId"; get id(): Uint8Array; set id(value: Uint8Array); toHexString(): string; toString(encoding?: "hex" | "base64"): string; toJSON(): string; equals(otherId: string | ObjectId | ObjectIdLike | undefined | null): boolean; getTimestamp(): Date; inspect(depth?: number, options?: unknown, inspect?: InspectFn): string; _id: this; } type InspectFn = (x: unknown, options?: unknown) => string; interface ObjectIdLike { id: string | Uint8Array; __id?: string; toHexString(): string; } //#endregion export { BaseOptions, Intersect, ObjectId }; //# sourceMappingURL=types.d.ts.map