/// <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, Schema } from 'mongoose';
export interface ICashAllocationProduct {
    _id?: mongoose.Types.ObjectId;
    isProduct: boolean;
    isCommonSplit: boolean;
    order: number;
    productId: mongoose.Types.ObjectId;
    nonProductName: string;
    accounts: {
        [companyId: string]: {
            accountId1: mongoose.Types.ObjectId | 'BANK';
            accountId2: mongoose.Types.ObjectId | 'BANK';
        };
    };
    class: string;
    location: string;
    DRMemo: string;
    CRMemo: string;
}
export type ICashAllocationProductStringified = {
    [K in keyof ICashAllocationProduct]: K extends '_id' | 'productId' ? string : ICashAllocationProduct[K];
};
type CashAllocationProductModel = Model<ICashAllocationProduct>;
export declare const AccountSchema: {
    type: MapConstructor;
    of: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
        accountId1: {
            type: typeof Schema.Types.Mixed;
            required: false;
            set: (value: unknown) => mongoose.Types.ObjectId | 'BANK' | null;
            validate: {
                validator: (value: mongoose.Types.ObjectId | 'BANK' | null) => boolean;
                message: (props: any) => string;
            };
        };
        accountId2: {
            type: typeof Schema.Types.Mixed;
            required: false;
            set: (value: unknown) => mongoose.Types.ObjectId | 'BANK' | null;
            validate: {
                validator: (value: mongoose.Types.ObjectId | 'BANK' | null) => boolean;
                message: (props: any) => string;
            };
        };
    }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
        accountId1: {
            type: typeof Schema.Types.Mixed;
            required: false;
            set: (value: unknown) => mongoose.Types.ObjectId | 'BANK' | null;
            validate: {
                validator: (value: mongoose.Types.ObjectId | 'BANK' | null) => boolean;
                message: (props: any) => string;
            };
        };
        accountId2: {
            type: typeof Schema.Types.Mixed;
            required: false;
            set: (value: unknown) => mongoose.Types.ObjectId | 'BANK' | null;
            validate: {
                validator: (value: mongoose.Types.ObjectId | 'BANK' | null) => boolean;
                message: (props: any) => string;
            };
        };
    }>> & mongoose.FlatRecord<{
        accountId1: {
            type: typeof Schema.Types.Mixed;
            required: false;
            set: (value: unknown) => mongoose.Types.ObjectId | 'BANK' | null;
            validate: {
                validator: (value: mongoose.Types.ObjectId | 'BANK' | null) => boolean;
                message: (props: any) => string;
            };
        };
        accountId2: {
            type: typeof Schema.Types.Mixed;
            required: false;
            set: (value: unknown) => mongoose.Types.ObjectId | 'BANK' | null;
            validate: {
                validator: (value: mongoose.Types.ObjectId | 'BANK' | null) => boolean;
                message: (props: any) => string;
            };
        };
    }> & {
        _id: mongoose.Types.ObjectId;
    }>;
    default: {};
};
export declare const CashAllocationProductSchema: mongoose.Schema<ICashAllocationProduct, CashAllocationProductModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ICashAllocationProduct, mongoose.Document<unknown, {}, mongoose.FlatRecord<ICashAllocationProduct>> & mongoose.FlatRecord<ICashAllocationProduct> & Required<{
    _id: mongoose.Types.ObjectId;
}>>;
export declare const CashAllocationProduct: CashAllocationProductModel;
export {};
