/// <reference types="mongoose/types/types" />
/// <reference types="mongoose/types/models" />
/// <reference types="mongoose/types/schemaoptions" />
/// <reference types="mongoose/types/utility" />
/// <reference types="mongoose/types/document" />
/// <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, { Model } from 'mongoose';
export declare const RESULT_SOURCES: readonly ["SCORE", "RULE"];
export type TResultSource = typeof RESULT_SOURCES[number];
export declare const SUBMISSION_STATUSES: readonly ["draft", "final"];
export type TSubmissionStatus = typeof SUBMISSION_STATUSES[number];
export interface IStorecardSubmission {
    borrowerId: mongoose.Types.ObjectId;
    scorecardId: mongoose.Types.ObjectId;
    scorecardVersionId: mongoose.Types.ObjectId;
    period: string;
    totalScore?: number;
    sectionScores?: Record<string, number>;
    status: TSubmissionStatus;
    lockedAt: Date;
    finalResult?: string;
    resultSource?: TResultSource;
    resultRuleKey?: string;
}
export interface IStorecardSubmissionDoc extends IStorecardSubmission, Document {
    _id: mongoose.Types.ObjectId;
    createdAt: Date;
    updatedAt: Date;
}
export interface IStorecardSubmissionLean extends IStorecardSubmission {
    _id: mongoose.Types.ObjectId;
    createdAt: Date;
    updatedAt: Date;
}
export interface IScorecardSubmissionPlain extends Omit<IStorecardSubmission, 'borrowerId' | 'scorecardId' | 'scorecardVersionId'> {
    _id: string;
    borrowerId: string;
    scorecardId: string;
    scorecardVersionId: string;
}
export type TStorecardSubmissionModel = Model<IStorecardSubmission>;
export declare const StorecardSubmissionSchema: mongoose.Schema<IStorecardSubmission, TStorecardSubmissionModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IStorecardSubmission, mongoose.Document<unknown, {}, mongoose.FlatRecord<IStorecardSubmission>> & mongoose.FlatRecord<IStorecardSubmission> & {
    _id: mongoose.Types.ObjectId;
}>;
export declare const StorecardSubmission: TStorecardSubmissionModel;
