export interface DomainStatus { domain: { hostname: string; status: string; sslStatus: string | null; } | null; cnameTarget: string; } export declare class DomainError extends Error { code: string; constructor(code: string, message?: string); } /** The endpoint's custom domain, if any (polls certificate issuance). */ export declare function getDomain(subdomain: string): Promise; /** Attach a hostname (one per endpoint). Returns pending until the CNAME lands. */ export declare function attachDomain(subdomain: string, hostname: string): Promise; /** Detach the endpoint's custom domain. */ export declare function removeDomain(subdomain: string): Promise<{ removed: boolean; }>;