import { Repository, DataSource } from 'typeorm';
import { Agent } from '../core-entities';
import { CreateAgentDto } from './dto/create-agent.dto';
import { UpdateAgentDto } from './dto/update-agent.dto';
export declare class AgentsService {
    private readonly agentsRepository;
    private readonly dataSource;
    private readonly logger;
    constructor(agentsRepository: Repository<Agent>, dataSource: DataSource);
    create(createAgentDto: CreateAgentDto): Promise<Agent>;
    findAll(activeOnly?: boolean): Promise<Agent[]>;
    findOne(id: string): Promise<Agent>;
    update(id: string, updateAgentDto: UpdateAgentDto): Promise<Agent>;
    remove(id: string): Promise<void>;
    setDefault(id: string): Promise<Agent>;
    private clearDefault;
    findDefault(): Promise<Agent | null>;
    findByBuiltinKey(builtinKey: string): Promise<Agent | null>;
    duplicate(id: string): Promise<Agent>;
}
