import * as API from "../../common/api"; import { CollectionDoc, QueryParams, Resource, ResourceId, SingleDoc } from "../../common/structures"; export declare function domains(query?: QueryParams): Promise>; export interface Collection extends CollectionDoc { data: Record[]; } export interface Single extends SingleDoc { data: Record | null; } export interface Record extends Resource { container?: ResourceId; type: Types; assignable: boolean; name: string; domain: string; values: { ip?: string; priority?: number; domain?: string; text?: string; }; } export declare type Types = "a" | "aaaa" | "cname" | "mx" | "srv" | "ns" | "txt"; export interface NewParams { type: Types; assignable: boolean; name: string; values: { ip?: string; priority?: number; domain?: string; text?: string; }; } export interface UpdateParams { type?: Types; assignable?: boolean; name?: string; domain?: string; values?: { ip?: string; priority?: number; domain?: string; text?: string; }; } export declare class CollectionRequest { private target; constructor(zoneId: ResourceId); get(query?: QueryParams): Promise>; create(doc: NewParams, query?: QueryParams): Promise>; } export declare class SingleRequest { private target; constructor(zoneId: ResourceId, recordId: ResourceId); get(query?: QueryParams): Promise>; update(doc: UpdateParams, query?: QueryParams): Promise>; delete(): Promise>; }