import { DnsRecord, ProviderCredentials } from '../providers/types'; export interface RouteResult { success: boolean; message: string; provider: string; method: 'registrar' | 'directadmin' | 'none'; } /** * Migrate legacy config.registrar to config.providers format. */ export declare function migrateConfig(): void; /** * Load credentials for a given provider. * Checks domain-specific override first: config.providers["cloudflare:example.com"] * Then falls back to default: config.providers["cloudflare"] */ export declare function getProviderCreds(providerId: string, domain?: string): ProviderCredentials | null; /** * Check if MXroute is the DNS authority for the given nameservers. */ export declare function isMxrouteAuthority(nameservers: string[], server: string): boolean; /** * Route a DNS add operation to the correct provider or DirectAdmin. */ export declare function routeDnsAdd(domain: string, record: DnsRecord): Promise; /** * Route a DNS delete operation to the correct provider or DirectAdmin. */ export declare function routeDnsDelete(domain: string, record: DnsRecord): Promise; /** * Route a DNS list operation to the correct provider or DirectAdmin. */ export declare function routeDnsList(domain: string): Promise;