import * as Core from 'cloudflaredev/core';
import { APIResource } from 'cloudflaredev/resource';
import * as DomainsAPI from 'cloudflaredev/resources/workers/domains';
import { SinglePage } from 'cloudflaredev/pagination';
export declare class Domains extends APIResource {
    /**
     * Attaches a Worker to a zone and hostname.
     */
    update(params: DomainUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Domain>;
    /**
     * Lists all Worker Domains for an account.
     */
    list(params: DomainListParams, options?: Core.RequestOptions): Core.PagePromise<DomainsSinglePage, Domain>;
    /**
     * Detaches a Worker from a zone and hostname.
     */
    delete(domainId: string, params: DomainDeleteParams, options?: Core.RequestOptions): Core.APIPromise<void>;
    /**
     * Gets a Worker domain.
     */
    get(domainId: string, params: DomainGetParams, options?: Core.RequestOptions): Core.APIPromise<Domain>;
}
export declare class DomainsSinglePage extends SinglePage<Domain> {
}
export interface Domain {
    /**
     * Identifer of the Worker Domain.
     */
    id?: string;
    /**
     * Worker environment associated with the zone and hostname.
     */
    environment?: string;
    /**
     * Hostname of the Worker Domain.
     */
    hostname?: string;
    /**
     * Worker service associated with the zone and hostname.
     */
    service?: string;
    /**
     * Identifier of the zone.
     */
    zone_id?: string;
    /**
     * Name of the zone.
     */
    zone_name?: string;
}
export interface DomainUpdateParams {
    /**
     * Path param:
     */
    account_id: string;
    /**
     * Body param: Worker environment associated with the zone and hostname.
     */
    environment: string;
    /**
     * Body param: Hostname of the Worker Domain.
     */
    hostname: string;
    /**
     * Body param: Worker service associated with the zone and hostname.
     */
    service: string;
    /**
     * Body param: Identifier of the zone.
     */
    zone_id: string;
}
export interface DomainListParams {
    /**
     * Path param:
     */
    account_id: string;
    /**
     * Query param: Worker environment associated with the zone and hostname.
     */
    environment?: string;
    /**
     * Query param: Hostname of the Worker Domain.
     */
    hostname?: string;
    /**
     * Query param: Worker service associated with the zone and hostname.
     */
    service?: string;
    /**
     * Query param: Identifier of the zone.
     */
    zone_id?: string;
    /**
     * Query param: Name of the zone.
     */
    zone_name?: string;
}
export interface DomainDeleteParams {
    account_id: string;
}
export interface DomainGetParams {
    account_id: string;
}
export declare namespace Domains {
    export import Domain = DomainsAPI.Domain;
    export import DomainsSinglePage = DomainsAPI.DomainsSinglePage;
    export import DomainUpdateParams = DomainsAPI.DomainUpdateParams;
    export import DomainListParams = DomainsAPI.DomainListParams;
    export import DomainDeleteParams = DomainsAPI.DomainDeleteParams;
    export import DomainGetParams = DomainsAPI.DomainGetParams;
}
//# sourceMappingURL=domains.d.ts.map