import { ObjectId as ObjectIdClass } from 'bson'; import * as x from 'x-value'; export declare const objectIdSymbol: unique symbol; export declare const ObjectId: x.AtomicType; /** * Unlike ObjectId, ObjectIdHexString is string in every medium. */ export declare const ObjectIdHexString: x.RefinedType, "object id", unknown, false>; /** * BSON ObjectId in string. */ export type ObjectIdString = x.Nominal<'object id', string>; export type BSONObjectIdConstructor = new (id?: T) => x.TransformNominal; export declare const BSONObjectId: BSONObjectIdConstructor; export interface BSONObjectId extends ObjectIdClass { toHexString(): x.TransformNominal; }