import { OaAccount } from './entities/oa-account.entity';
import { CreateOaAccountDto } from './dto/create-oa-account.dto';
import { UpdateOaAccountDto } from './dto/update-oa-account.dto';
import { HttpService } from '@nestjs/axios';
import 'dotenv/config';
import { FileLoggerService } from '@/common/logger/file-logger.service';
import { RedisService } from '@/common/shared/redis.service';
import { OaAccountMasterService } from '../tenant/oa-account.service';
import { TenantConnectionManager } from '../tenant/tenant-connection.manager';
export declare class OaAccountService {
    private readonly tenantManager;
    private readonly httpService;
    private readonly fileLogger;
    private readonly redis;
    private readonly oaService;
    private zaloApi;
    private fbApi;
    constructor(tenantManager: TenantConnectionManager, httpService: HttpService, fileLogger: FileLoggerService, redis: RedisService, oaService: OaAccountMasterService);
    private getRepository;
    create(tenant: string, dto: CreateOaAccountDto): Promise<OaAccount>;
    findAll(tenant: string, keyword?: string): Promise<OaAccount[]>;
    findOne(tenant: string, id: string): Promise<OaAccount | null>;
    findByOaId(tenant: string, oaId: string): Promise<OaAccount | null>;
    update(tenant: string, id: string, dto: UpdateOaAccountDto): Promise<OaAccount | null>;
    remove(tenant: string, id: string): Promise<import("typeorm").DeleteResult>;
    bulkDelete(ids: (number | string)[], tenant: string): Promise<{
        success: boolean;
        deletedCount: number;
        ids: (string | number)[];
    }>;
    deleteMany(ids: (number | string)[], tenant: string): Promise<{
        success: boolean;
        deletedCount: number;
        ids: (string | number)[];
    }>;
    buildConnectUrl(tenant: string, oaId: string, type: 'zalo' | 'facebook'): Promise<string>;
    handleCallback(code: string, stateId: string): Promise<{
        success: boolean;
        data: any;
    }>;
    refreshAccessToken(tenant: string, oaId: string): Promise<OaAccount>;
}
