import { Types } from 'mongoose';
export declare function docId(doc: {
    _id: Types.ObjectId | string;
}): string;
export declare function leanWithId<T extends {
    _id: Types.ObjectId;
}>(doc: T): Omit<T, '_id'> & {
    id: string;
};
