import { ObjectId } from 'mongodb'; /** * Check if a value is a valid MongoDB ObjectId. * @param value - The value to check. * @returns True if the value is a valid ObjectId, false otherwise. */ declare const isObjectId: (value: string | number | ObjectId | Uint8Array) => boolean; /** * Convert a string to ObjectId if it's a valid ObjectId string. * @param value - The string value to convert to ObjectId * @returns ObjectId if valid string * @throws Error if the string is not a valid ObjectId */ declare const toObjectId: (value: string) => ObjectId; export { isObjectId, toObjectId };