import { Types } from 'mongoose'; type ObjectId = Types.ObjectId; export type Ref = string | ObjectId | (T & { _id: string | ObjectId; }); export type Nullable = T | null | undefined; export declare const isRef: (obj: unknown) => obj is Ref; export declare const isPopulated: (ref: Ref) => ref is T & { _id: string | ObjectId; }; export declare const getIdForRef: (ref: Ref) => string | ObjectId; export declare const getIdStringForRef: (ref: Ref) => string; export {};