/**
 * Cloudflare CUSTOM-PAGES API
 *
 * Generated from Cloudflare TypeScript SDK.
 * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service custom-pages
 */
import * as Schema from "effect/Schema";
import type * as HttpClient from "effect/unstable/http/HttpClient";
import * as API from "../client/api.ts";
import type { Credentials } from "../credentials.ts";
import { type DefaultErrors } from "../errors.ts";
export interface GetCustomPageRequest {
    identifier: "1000_errors" | "500_errors" | "basic_challenge" | "country_challenge" | "ip_block" | "managed_challenge" | "ratelimit_block" | "under_attack" | "waf_block" | "waf_challenge";
}
export declare const GetCustomPageRequest: Schema.Schema<GetCustomPageRequest>;
export interface GetCustomPageResponse {
    id?: string | null;
    createdOn?: string | null;
    description?: string | null;
    modifiedOn?: string | null;
    previewTarget?: string | null;
    requiredTokens?: string[] | null;
    /** The custom page state. */
    state?: "default" | "customized" | null;
    /** The URL associated with the custom page. */
    url?: string | null;
}
export declare const GetCustomPageResponse: Schema.Schema<GetCustomPageResponse>;
export type GetCustomPageError = DefaultErrors;
export declare const getCustomPage: API.OperationMethod<GetCustomPageRequest, GetCustomPageResponse, GetCustomPageError, Credentials | HttpClient.HttpClient>;
export interface ListCustomPagesRequest {
}
export declare const ListCustomPagesRequest: Schema.Schema<ListCustomPagesRequest>;
export interface ListCustomPagesResponse {
    result: {
        id?: string | null;
        createdOn?: string | null;
        description?: string | null;
        modifiedOn?: string | null;
        previewTarget?: string | null;
        requiredTokens?: string[] | null;
        state?: "default" | "customized" | null;
        url?: string | null;
    }[];
}
export declare const ListCustomPagesResponse: Schema.Schema<ListCustomPagesResponse>;
export type ListCustomPagesError = DefaultErrors;
export declare const listCustomPages: API.PaginatedOperationMethod<ListCustomPagesRequest, ListCustomPagesResponse, ListCustomPagesError, Credentials | HttpClient.HttpClient>;
export interface PutCustomPageRequest {
    identifier: "1000_errors" | "500_errors" | "basic_challenge" | "country_challenge" | "ip_block" | "managed_challenge" | "ratelimit_block" | "under_attack" | "waf_block" | "waf_challenge";
    /** Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */
    accountId?: string;
    /** Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */
    zoneId?: string;
    /** Body param: The custom page state. */
    state: "default" | "customized";
    /** Body param: The URL associated with the custom page. */
    url: string;
}
export declare const PutCustomPageRequest: Schema.Schema<PutCustomPageRequest>;
export interface PutCustomPageResponse {
    id?: string | null;
    createdOn?: string | null;
    description?: string | null;
    modifiedOn?: string | null;
    previewTarget?: string | null;
    requiredTokens?: string[] | null;
    /** The custom page state. */
    state?: "default" | "customized" | null;
    /** The URL associated with the custom page. */
    url?: string | null;
}
export declare const PutCustomPageResponse: Schema.Schema<PutCustomPageResponse>;
export type PutCustomPageError = DefaultErrors;
export declare const putCustomPage: API.OperationMethod<PutCustomPageRequest, PutCustomPageResponse, PutCustomPageError, Credentials | HttpClient.HttpClient>;
//# sourceMappingURL=custom-pages.d.ts.map