import { AxiosInstance } from 'axios'; import { Domain, DomainDnsRecord } from '../../types'; export declare class Domains { private readonly http; constructor(http: AxiosInstance); /** * Create a new domain * https://learn.microsoft.com/en-us/graph/api/domain-post-domains?view=graph-rest-1.0&tabs=http * @param domainName The fully qualified name of the domain * @returns The created Domain object */ createDomain(domainName: string): Promise; /** * List all domains * https://learn.microsoft.com/en-us/graph/api/domain-list?view=graph-rest-1.0&tabs=http * @returns An array of Domain objects */ getAllDomains(): Promise; /** * Get a specific domain * https://learn.microsoft.com/en-us/graph/api/domain-get?view=graph-rest-1.0&tabs=http * @param domainId The domain ID (which is the fully qualified domain name) * @returns The Domain object */ getDomain(domainId: string): Promise; /** * Update a domain * https://learn.microsoft.com/en-us/graph/api/domain-update?view=graph-rest-1.0&tabs=http * @param domainId The domain ID (which is the fully qualified domain name) * @param updateData The data to update on the domain * @returns The updated Domain object */ updateDomain(domainId: string, updateData: Partial): Promise; /** * Delete a domain * https://learn.microsoft.com/en-us/graph/api/domain-delete?view=graph-rest-1.0&tabs=http * @param domainId The domain ID (which is the fully qualified domain name) */ deleteDomain(domainId: string): Promise; /** * Verify a domain * https://learn.microsoft.com/en-us/graph/api/domain-verify?view=graph-rest-1.0&tabs=http * @param domainId The domain ID (which is the fully qualified domain name) * @returns The verified Domain object */ verifyDomain(domainId: string): Promise; /** * Get verification DNS records for a domain * https://learn.microsoft.com/en-us/graph/api/domain-list-verificationdnsrecords?view=graph-rest-1.0&tabs=http * @param domainId The domain ID (which is the fully qualified domain name) * @returns An array of DomainDnsRecord objects */ getDomainVerificationDnsRecords(domainId: string): Promise; }