/// <reference types="mongoose/types/document" />
/// <reference types="mongoose/types/types" />
/// <reference types="mongoose/types/models" />
/// <reference types="mongoose/types/schemaoptions" />
/// <reference types="mongoose/types/utility" />
/// <reference types="mongoose/types/aggregate" />
/// <reference types="mongoose/types/callback" />
/// <reference types="mongoose/types/collection" />
/// <reference types="mongoose/types/connection" />
/// <reference types="mongoose/types/cursor" />
/// <reference types="mongoose/types/document" />
/// <reference types="mongoose/types/error" />
/// <reference types="mongoose/types/expressions" />
/// <reference types="mongoose/types/helpers" />
/// <reference types="mongoose/types/middlewares" />
/// <reference types="mongoose/types/indexes" />
/// <reference types="mongoose/types/models" />
/// <reference types="mongoose/types/mongooseoptions" />
/// <reference types="mongoose/types/pipelinestage" />
/// <reference types="mongoose/types/populate" />
/// <reference types="mongoose/types/query" />
/// <reference types="mongoose/types/schemaoptions" />
/// <reference types="mongoose/types/schematypes" />
/// <reference types="mongoose/types/session" />
/// <reference types="mongoose/types/types" />
/// <reference types="mongoose/types/utility" />
/// <reference types="mongoose/types/validation" />
/// <reference types="mongoose/types/virtuals" />
/// <reference types="mongoose/types/inferschematype" />
import mongoose, { Document, Model } from 'mongoose';
import Joi from 'joi';
export interface IUnderwriter {
    isDeleted: boolean;
    name: string;
    email: string;
    order?: number;
    userId?: string;
}
export interface IUnderwriterDoc extends IUnderwriter, Document {
    _id: mongoose.Types.ObjectId;
    createdAt: Date;
    updatedAt: Date;
}
export interface IUnderwriterLean extends IUnderwriter {
    _id: mongoose.Types.ObjectId;
    createdAt: Date;
    updatedAt: Date;
}
export interface IUnderwriterPlain extends IUnderwriter {
    _id: string;
    createdAt: Date;
    updatedAt: Date;
}
export type UnderwriterModel = Model<IUnderwriterDoc>;
export declare const UnderwriterValidationSchema: Joi.ObjectSchema<any>;
export declare const UnderwriterSchema: mongoose.Schema<IUnderwriter, UnderwriterModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IUnderwriter, mongoose.Document<unknown, {}, mongoose.FlatRecord<IUnderwriter>> & mongoose.FlatRecord<IUnderwriter> & {
    _id: mongoose.Types.ObjectId;
}>;
export declare const Underwriter: UnderwriterModel;
