/// <reference types="mongoose/types/types" />
/// <reference types="mongoose/types/document" />
/// <reference types="mongoose/types/models" />
/// <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 from 'mongoose';
import { IUser } from '../interfaces/auth-user.interface';
export declare const REQUIRED_SIGNS = 2;
export interface IAvailabilitySignItem {
    userSignedId: string;
    signedAt: Date;
    userRevokedId?: string;
    revokedAt?: Date;
}
export interface IAvailabilitySignItemPreView {
    _id: mongoose.Types.ObjectId;
    userSignedId: string;
    signedAt: Date;
    userRevokedId?: string;
    revokedAt?: Date;
}
export interface IAvailabilitySignItemView {
    _id: mongoose.Types.ObjectId;
    userSigned: IUser;
    signedAt: Date;
    userRevoked?: IUser;
    revokedAt?: Date;
}
export interface IAvailabilitySign {
    bbcDateId: mongoose.Types.ObjectId;
    requiredSigns: number;
    signs: IAvailabilitySignItem[];
}
export interface IAvailabilitySignPreView {
    _id: mongoose.Types.ObjectId;
    bbcDateId: mongoose.Types.ObjectId;
    requiredSigns: number;
    signs: IAvailabilitySignItemPreView[];
}
export interface IAvailabilitySignView {
    _id: mongoose.Types.ObjectId;
    bbcDateId: mongoose.Types.ObjectId;
    requiredSigns: number;
    signs: IAvailabilitySignItemView[];
}
export interface IAvailabilitySignDoc extends IAvailabilitySign, mongoose.Document {
}
export interface IAvailabilitySignDoc extends IAvailabilitySign, mongoose.Document {
    _id: mongoose.Types.ObjectId;
    createdAt: Date;
    updatedAt: Date;
}
export interface IAvailabilitySignLean extends IAvailabilitySign {
    _id: mongoose.Types.ObjectId;
    createdAt: Date;
    updatedAt: Date;
}
export interface IAvailabilitySignPlain extends Omit<IAvailabilitySign, 'bbcDateId'> {
    _id: string;
    bbcDateId: string;
}
export type TAvailabilitySignModel = mongoose.Model<IAvailabilitySign>;
export declare const AvailabilitySignSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
    timestamps: true;
}, {
    createdAt: NativeDate;
    updatedAt: NativeDate;
} & {
    bbcDateId: mongoose.Types.ObjectId;
    requiredSigns: number;
    signs: mongoose.Types.DocumentArray<{
        userSignedId: string;
        signedAt: Date;
        userRevokedId?: string;
        revokedAt?: Date;
    }>;
    __v?: number;
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
    createdAt: NativeDate;
    updatedAt: NativeDate;
} & {
    bbcDateId: mongoose.Types.ObjectId;
    requiredSigns: number;
    signs: mongoose.Types.DocumentArray<{
        userSignedId: string;
        signedAt: Date;
        userRevokedId?: string;
        revokedAt?: Date;
    }>;
    __v?: number;
}>> & mongoose.FlatRecord<{
    createdAt: NativeDate;
    updatedAt: NativeDate;
} & {
    bbcDateId: mongoose.Types.ObjectId;
    requiredSigns: number;
    signs: mongoose.Types.DocumentArray<{
        userSignedId: string;
        signedAt: Date;
        userRevokedId?: string;
        revokedAt?: Date;
    }>;
    __v?: number;
}> & {
    _id: mongoose.Types.ObjectId;
}>;
export declare const AvailabilitySignsModel: mongoose.Model<IAvailabilitySignDoc, {}, {}, {}, mongoose.Document<unknown, {}, IAvailabilitySignDoc> & IAvailabilitySignDoc & Required<{
    _id: mongoose.Types.ObjectId;
}>, any>;
