import DataLoader from 'dataloader';
import { AdminContextProvider } from '../../admin-context/providers/admin-context.provider.js';
import { TenantAwareDBClient } from '../../app-providers/tenant-db-client.js';
import type { IDeleteExpenseParams, IGetExpensesByChargeIdsResult, IInsertExpenseParams, IInsertExpensesParams, IReplaceMiscExpensesChargeIdParams, IUpdateExpenseParams } from '../types.js';
export declare class MiscExpensesProvider {
    private db;
    private adminContextProvider;
    constructor(db: TenantAwareDBClient, adminContextProvider: AdminContextProvider);
    private batchExpensesByChargeIds;
    getExpensesByChargeIdLoader: DataLoader<string, IGetExpensesByChargeIdsResult[], string>;
    private batchExpensesByFinancialEntityIds;
    getExpensesByFinancialEntityIdLoader: DataLoader<string, IGetExpensesByChargeIdsResult[], string>;
    private batchExpensesByIds;
    getExpensesByIdLoader: DataLoader<string, import("../types.js").IGetExpensesByIdsResult | undefined, string>;
    updateExpense(params: IUpdateExpenseParams): Promise<import("../types.js").IUpdateExpenseResult[]>;
    replaceMiscExpensesChargeId(params: IReplaceMiscExpensesChargeIdParams): Promise<import("../types.js").IReplaceMiscExpensesChargeIdResult[]>;
    insertExpense(params: IInsertExpenseParams): Promise<import("../types.js").IInsertExpenseResult[]>;
    insertExpenses(params: IInsertExpensesParams): Promise<import("../types.js").IInsertExpensesResult[]>;
    deleteMiscExpense(params: IDeleteExpenseParams): Promise<import("../types.js").IDeleteExpenseResult[]>;
    invalidateByChargeId(chargeId: string): Promise<void>;
    invalidateByFinancialEntityId(financialEntityId: string): Promise<void>;
    invalidateById(id: string): Promise<void>;
    clearCache(): void;
}
