import DataLoader from 'dataloader';
import { DBProvider } from '../../app-providers/db.provider.js';
import type { IGetAllFinancialEntitiesResult, IInsertFinancialEntitiesParams, IUpdateFinancialEntityParams } from '../types.js';
import { BusinessesOperationProvider } from './businesses-operation.provider.js';
import { BusinessesProvider } from './businesses.provider.js';
import { TaxCategoriesProvider } from './tax-categories.provider.js';
export declare class FinancialEntitiesProvider {
    private dbProvider;
    private businessesProvider;
    private businessesOperationProvider;
    private taxCategoriesProvider;
    cache: {
        get: <T>(key: import("node-cache").Key) => T | undefined;
        set: {
            <T>(key: import("node-cache").Key, value: T, ttl: number | string): boolean;
            <T>(key: import("node-cache").Key, value: T): boolean;
        };
        delete: (keys: import("node-cache").Key | import("node-cache").Key[]) => number;
        clear: () => void;
    };
    constructor(dbProvider: DBProvider, businessesProvider: BusinessesProvider, businessesOperationProvider: BusinessesOperationProvider, taxCategoriesProvider: TaxCategoriesProvider);
    private batchFinancialEntitiesByIds;
    getFinancialEntityByIdLoader: DataLoader<string, import("../types.js").IGetFinancialEntitiesByIdsResult | undefined, import("node-cache").Key | import("node-cache").Key[]>;
    getAllFinancialEntities(): IGetAllFinancialEntitiesResult[] | Promise<IGetAllFinancialEntitiesResult[]>;
    updateFinancialEntity(params: IUpdateFinancialEntityParams): Promise<import("../types.js").IUpdateFinancialEntityResult[]>;
    insertFinancialEntity(params: IInsertFinancialEntitiesParams['financialEntities'][number]): Promise<import("../types.js").IInsertFinancialEntitiesResult[]>;
    private batchInsertFinancialEntities;
    insertFinancialEntitiesLoader: DataLoader<{
        type: string | null | void;
        ownerId: string | null | void;
        name: string | null | void;
        sortCode: number | null | void;
        irsCode: number | null | void;
        isActive: boolean | null | void;
    }, import("../types.js").IInsertFinancialEntitiesResult | null, {
        type: string | null | void;
        ownerId: string | null | void;
        name: string | null | void;
        sortCode: number | null | void;
        irsCode: number | null | void;
        isActive: boolean | null | void;
    }>;
    deleteFinancialEntityById(financialEntityId: string): Promise<void>;
    replaceFinancialEntity(targetEntityId: string, entityIdToReplace: string, deleteEntity?: boolean): Promise<void>;
    invalidateFinancialEntityById(financialEntityId: string): void;
    clearCache(): void;
}
