import { Repository, EntityManager } from 'typeorm';
import { Company } from '../entities/company.entity';
import { CompanyBranch } from '../entities/company-branch.entity';
export declare class CompanyResolverService {
    private readonly companyRepository;
    private readonly branchRepository;
    constructor(companyRepository: Repository<Company>, branchRepository: Repository<CompanyBranch>);
    normalize(name: string): string;
    private extractCompanyName;
    private removeLocations;
    private removeSpecialCharacters;
    private removeEntitySuffixes;
    private calculateSimilarity;
    private levenshteinDistance;
    resolveCompany(companyData: {
        company_id?: number | null;
        name: string;
        trade_license_no?: string | null;
        client_group?: string;
    }, manager?: EntityManager): Promise<Company>;
    resolveBranch(companyId: number, branchData: {
        company_branch_id?: number | null;
        branch_name?: string | null;
        trade_license_no?: string | null;
        address?: string | null;
        city?: string | null;
        contact_person?: string | null;
        email?: string | null;
        mobile?: string | null;
    }, manager?: EntityManager): Promise<CompanyBranch>;
    resolveCompanyId(name: string): Promise<number>;
}
