import * as S from "@distilled.cloud/core/schema"; import * as API from "@distilled.cloud/core/api"; import { type CloudflareOpError, type CloudflareOpContext } from "../protocol.ts"; import { ResultInfo } from "../pagination.ts"; export type { CloudflareOpError, CloudflareOpContext }; declare const Forbidden_base: S.Class, import("effect/Cause").YieldableError>; export declare class Forbidden extends /*@__PURE__*/ Forbidden_base { } declare const RegistrarDomainNotOwned_base: S.Class, import("effect/Cause").YieldableError>; export declare class RegistrarDomainNotOwned extends /*@__PURE__*/ RegistrarDomainNotOwned_base { } declare const RegistrarUpdateNotAllowed_base: S.Class, import("effect/Cause").YieldableError>; export declare class RegistrarUpdateNotAllowed extends /*@__PURE__*/ RegistrarUpdateNotAllowed_base { } export type CheckRequestDomainsList = Array; export declare const CheckRequestDomainsList: S.Schema; export interface CheckRegistrarRequest { /** Identifier */ accountId: string; /** List of fully qualified domain names (FQDNs) to check for availability. Each domain must include the extension. */ domains: CheckRequestDomainsList; } export declare const CheckRegistrarRequest: S.Schema; export interface CheckResponseDomainsItemPricing { /** ISO-4217 currency code for the prices (e.g., "USD", "EUR", "GBP"). */ currency: string; /** The first-year cost to register this domain. For premium domains */ registrationCost: string; /** Per-year renewal cost for this domain. Applied to each year beyond */ renewalCost: string; } export declare const CheckResponseDomainsItemPricing: S.Schema; export type CheckResponseDomainsItemReason = "extension_not_supported_via_api" | "extension_not_supported" | "extension_disallows_registration" | "domain_premium" | "domain_unavailable"; export declare const CheckResponseDomainsItemReason: any; export type CheckResponseDomainsItemTier = "standard" | "premium"; export declare const CheckResponseDomainsItemTier: any; export interface CheckResponseDomainsItem { /** The fully qualified domain name (FQDN) in punycode format for internationalized domain names (IDNs). */ name: string; /** Indicates whether this domain can be registered programmatically through this API based on a real-time registry check. */ registrable: boolean; /** Annual pricing information for a registrable domain. This object is only */ pricing?: CheckResponseDomainsItemPricing | null; /** Present only when `registrable` is `false`. Explains why the domain cannot be registered via this API. */ reason?: CheckResponseDomainsItemReason | null; /** The pricing tier for this domain. Always present when `registrable` is `true`; defaults to `standard` for most domains. May be absent when `registrable` is `false`. */ tier?: CheckResponseDomainsItemTier | null; } export declare const CheckResponseDomainsItem: S.Schema; export type CheckResponseDomainsList = Array; export declare const CheckResponseDomainsList: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CheckRegistrarResponse { /** Array of domain availability results. Domains on unsupported */ domains: CheckResponseDomainsList; } export declare const CheckRegistrarResponse: S.Schema; export interface GetDomainRequest { /** Identifier */ accountId: string; /** Fully qualified domain name (FQDN) including the extension */ domainName: string; } export declare const GetDomainRequest: S.Schema; export type GetDomainResponse = unknown; export declare const GetDomainResponse: S.Schema; export interface GetRegistrationStatusRequest { /** Identifier */ accountId: string; /** Fully qualified domain name (FQDN) including the extension */ domainName: string; } export declare const GetRegistrationStatusRequest: S.Schema; export interface RegistrationStatusGetResponseLinks { /** URL to this status resource. */ self: string; /** URL to the domain resource. */ resource?: string | null; } export declare const RegistrationStatusGetResponseLinks: S.Schema; export type RegistrationStatusGetResponseState = "pending" | "in_progress" | "action_required" | "blocked" | "succeeded" | "failed"; export declare const RegistrationStatusGetResponseState: any; export type RegistrationStatusGetResponseContextMap = { [key: string]: unknown | undefined; }; export declare const RegistrationStatusGetResponseContextMap: S.Schema; export interface RegistrationStatusGetResponseError { /** Machine-readable error code identifying the failure reason. */ code: string; /** Human-readable explanation of the failure. May include registry-specific details. */ message: string; } export declare const RegistrationStatusGetResponseError: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetRegistrationStatusResponse { /** Whether the workflow has reached a terminal state. `true` when */ completed: boolean; createdAt: string; links: RegistrationStatusGetResponseLinks; /** Workflow lifecycle state. */ state: RegistrationStatusGetResponseState; updatedAt: string; /** Workflow-specific data for this workflow. */ context?: RegistrationStatusGetResponseContextMap | null; /** Error details when a workflow reaches the `failed` state. The specific */ error?: RegistrationStatusGetResponseError | null; } export declare const GetRegistrationStatusResponse: S.Schema; export interface GetUpdateStatusRequest { /** Identifier */ accountId: string; /** Fully qualified domain name (FQDN) including the extension */ domainName: string; } export declare const GetUpdateStatusRequest: S.Schema; export type UpdateStatusGetResponseLinks = RegistrationStatusGetResponseLinks; export declare const UpdateStatusGetResponseLinks: S.Schema; export type UpdateStatusGetResponseState = "pending" | "in_progress" | "action_required" | "blocked" | "succeeded" | "failed"; export declare const UpdateStatusGetResponseState: any; export type UpdateStatusGetResponseContextMap = { [key: string]: unknown | undefined; }; export declare const UpdateStatusGetResponseContextMap: S.Schema; export type UpdateStatusGetResponseError = RegistrationStatusGetResponseError; export declare const UpdateStatusGetResponseError: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetUpdateStatusResponse { /** Whether the workflow has reached a terminal state. `true` when */ completed: boolean; createdAt: string; links: RegistrationStatusGetResponseLinks; /** Workflow lifecycle state. */ state: UpdateStatusGetResponseState; updatedAt: string; /** Workflow-specific data for this workflow. */ context?: UpdateStatusGetResponseContextMap | null; /** Error details when a workflow reaches the `failed` state. The specific */ error?: RegistrationStatusGetResponseError | null; } export declare const GetUpdateStatusResponse: S.Schema; export interface ListDomainsRequest { /** Identifier */ accountId: string; } export declare const ListDomainsRequest: S.Schema; export interface DomainsListResultItemRegistrantContact { /** Address. */ address: string; /** City. */ city: string; /** The country in which the user lives. */ country: string; /** User's first name */ firstName: string; /** User's last name */ lastName: string; /** Name of organization. */ organization: string; /** User's telephone number */ phone: string; /** State. */ state: string; /** The zipcode or postal code where the user lives. */ zip: string; /** Contact Identifier. */ id?: string | null; /** Optional address line for unit, floor, suite, etc. */ address2?: string | null; /** The contact email address of the user. */ email?: string | null; /** Contact fax number. */ fax?: string | null; } export declare const DomainsListResultItemRegistrantContact: S.Schema; export type DomainsListResultItemTransferInAcceptFoa = "needed" | "ok"; export declare const DomainsListResultItemTransferInAcceptFoa: any; export type DomainsListResultItemTransferInApproveTransfer = "needed" | "ok" | "pending" | "trying" | "rejected" | "unknown"; export declare const DomainsListResultItemTransferInApproveTransfer: any; export type DomainsListResultItemTransferInDisablePrivacy = "needed" | "ok" | "unknown"; export declare const DomainsListResultItemTransferInDisablePrivacy: any; export type DomainsListResultItemTransferInEnterAuthCode = "needed" | "ok" | "pending" | "trying" | "rejected"; export declare const DomainsListResultItemTransferInEnterAuthCode: any; export type DomainsListResultItemTransferInUnlockDomain = "needed" | "ok" | "pending" | "trying" | "unknown"; export declare const DomainsListResultItemTransferInUnlockDomain: any; export interface DomainsListResultItemTransferIn { /** Form of authorization has been accepted by the registrant. */ acceptFoa?: DomainsListResultItemTransferInAcceptFoa | null; /** Shows transfer status with the registry. */ approveTransfer?: DomainsListResultItemTransferInApproveTransfer | null; /** Indicates if cancellation is still possible. */ canCancelTransfer?: boolean | null; /** Privacy guards are disabled at the foreign registrar. */ disablePrivacy?: DomainsListResultItemTransferInDisablePrivacy | null; /** Auth code has been entered and verified. */ enterAuthCode?: DomainsListResultItemTransferInEnterAuthCode | null; /** Domain is unlocked at the foreign registrar. */ unlockDomain?: DomainsListResultItemTransferInUnlockDomain | null; } export declare const DomainsListResultItemTransferIn: S.Schema; export interface DomainsListResultItem { /** Domain identifier. */ id?: string | null; /** Shows if a domain is available for transferring into Cloudflare Registrar. */ available?: boolean | null; /** Indicates if the domain can be registered as a new domain. */ canRegister?: boolean | null; /** Shows time of creation. */ createdAt?: string | null; /** Shows name of current registrar. */ currentRegistrar?: string | null; /** Shows when domain name registration expires. */ expiresAt?: string | null; /** Shows whether a registrar lock is in place for a domain. */ locked?: boolean | null; /** Shows contact information for domain registrant. */ registrantContact?: DomainsListResultItemRegistrantContact | null; /** A comma-separated list of registry status codes. A full list of status codes can be found at [EPP Status Codes](https://www.icann.org/resources/pages/epp-status-codes-2014-06-16-en). */ registryStatuses?: string | null; /** Whether a particular TLD is currently supported by Cloudflare Registrar. Refer to [TLD Policies](https://www.cloudflare.com/tld-policies/) for a list of supported TLDs. */ supportedTld?: boolean | null; /** Statuses for domain transfers into Cloudflare Registrar. */ transferIn?: DomainsListResultItemTransferIn | null; /** Last updated. */ updatedAt?: string | null; /** Domain name. */ name?: string | null; /** Whether the domain auto-renews. */ autoRenew?: boolean | null; /** Whether WHOIS privacy is enabled. */ privacy?: boolean | null; } export declare const DomainsListResultItem: S.Schema; export type DomainsListResultList = Array; export declare const DomainsListResultList: S.Schema; export interface ListDomainsResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: DomainsListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListDomainsResponse: S.Schema; export interface PutDomainRequest { /** Identifier */ accountId: string; /** Fully qualified domain name (FQDN) including the extension */ domainName: string; /** Auto-renew controls whether subscription is automatically renewed upon domain expiration. */ autoRenew?: boolean; /** Shows whether a registrar lock is in place for a domain. */ locked?: boolean; /** Privacy option controls redacting WHOIS information. */ privacy?: boolean; } export declare const PutDomainRequest: S.Schema; export type PutDomainResponse = unknown; export declare const PutDomainResponse: S.Schema; export interface RegistrationsCreateRequestContactsRegistrantPostalInfoAddress { /** City or locality name. */ city: string; /** Two-letter country code per ISO 3166-1 alpha-2 (e.g., `US`, `GB`, `CA`, `DE`). */ countryCode: string; /** Postal or ZIP code. */ postalCode: string; /** State, province, or region. Use the standard abbreviation where applicable (e.g., `TX` for Texas, `ON` for Ontario). */ state: string; /** Street address including building/suite number. */ street: string; } export declare const RegistrationsCreateRequestContactsRegistrantPostalInfoAddress: S.Schema; export interface RegistrationsCreateRequestContactsRegistrantPostalInfo { /** Physical mailing address for the registrant contact. */ address: RegistrationsCreateRequestContactsRegistrantPostalInfoAddress; /** Full legal name of the registrant (individual or authorized representative). */ name: string; /** Organization or company name. Optional for individual registrants. */ organization?: string; } export declare const RegistrationsCreateRequestContactsRegistrantPostalInfo: S.Schema; export interface RegistrationsCreateRequestContactsRegistrant { /** Email address for the registrant. Used for domain-related */ email: string; /** Phone number in E.164 format: `+{country_code}.{number}` with no */ phone: string; /** Postal/mailing information for the registrant contact. */ postalInfo: RegistrationsCreateRequestContactsRegistrantPostalInfo; /** Fax number in E.164 format (e.g., `+1.5555555555`). Optional. */ fax?: string; } export declare const RegistrationsCreateRequestContactsRegistrant: S.Schema; export interface RegistrationsCreateRequestContacts { /** Registrant contact data for the domain registration. This information */ registrant?: RegistrationsCreateRequestContactsRegistrant; } export declare const RegistrationsCreateRequestContacts: S.Schema; export type RegistrationsCreateRequestPrivacyMode = "redaction"; export declare const RegistrationsCreateRequestPrivacyMode: any; export interface RegistrationsCreateRequest { /** Identifier */ accountId: string; prefer?: string; /** Fully qualified domain name (FQDN) including the extension */ domainName: string; /** Enable or disable automatic renewal. Defaults to `false` if omitted. */ autoRenew?: boolean; /** Contact data for the registration request. */ contacts?: RegistrationsCreateRequestContacts; /** WHOIS privacy mode for the registration. Defaults to `redaction`. */ privacyMode?: RegistrationsCreateRequestPrivacyMode | (string & {}); /** Number of years to register (1–10). If omitted, defaults to the */ years?: number; } export declare const RegistrationsCreateRequest: S.Schema; export type RegistrationsCreateResponseLinks = RegistrationStatusGetResponseLinks; export declare const RegistrationsCreateResponseLinks: S.Schema; export type RegistrationsCreateResponseState = "pending" | "in_progress" | "action_required" | "blocked" | "succeeded" | "failed"; export declare const RegistrationsCreateResponseState: any; export type RegistrationsCreateResponseContextMap = { [key: string]: unknown | undefined; }; export declare const RegistrationsCreateResponseContextMap: S.Schema; export type RegistrationsCreateResponseError = RegistrationStatusGetResponseError; export declare const RegistrationsCreateResponseError: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface RegistrationsCreateResponse { /** Whether the workflow has reached a terminal state. `true` when */ completed: boolean; createdAt: string; links: RegistrationStatusGetResponseLinks; /** Workflow lifecycle state. */ state: RegistrationsCreateResponseState; updatedAt: string; /** Workflow-specific data for this workflow. */ context?: RegistrationsCreateResponseContextMap | null; /** Error details when a workflow reaches the `failed` state. The specific */ error?: RegistrationStatusGetResponseError | null; } export declare const RegistrationsCreateResponse: S.Schema; export type RegistrationsEditRequestPrefer = "respond-async"; export declare const RegistrationsEditRequestPrefer: any; export interface RegistrationsEditRequest { /** Identifier */ accountId: string; /** Fully qualified domain name (FQDN) including the extension */ domainName: string; prefer?: RegistrationsEditRequestPrefer | (string & {}); /** Enable or disable automatic renewal. */ autoRenew?: boolean; } export declare const RegistrationsEditRequest: S.Schema; export type RegistrationsEditResponseLinks = RegistrationStatusGetResponseLinks; export declare const RegistrationsEditResponseLinks: S.Schema; export type RegistrationsEditResponseState = "pending" | "in_progress" | "action_required" | "blocked" | "succeeded" | "failed"; export declare const RegistrationsEditResponseState: any; export type RegistrationsEditResponseContextMap = { [key: string]: unknown | undefined; }; export declare const RegistrationsEditResponseContextMap: S.Schema; export type RegistrationsEditResponseError = RegistrationStatusGetResponseError; export declare const RegistrationsEditResponseError: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface RegistrationsEditResponse { /** Whether the workflow has reached a terminal state. `true` when */ completed: boolean; createdAt: string; links: RegistrationStatusGetResponseLinks; /** Workflow lifecycle state. */ state: RegistrationsEditResponseState; updatedAt: string; /** Workflow-specific data for this workflow. */ context?: RegistrationsEditResponseContextMap | null; /** Error details when a workflow reaches the `failed` state. The specific */ error?: RegistrationStatusGetResponseError | null; } export declare const RegistrationsEditResponse: S.Schema; export interface RegistrationsGetRequest { /** Identifier */ accountId: string; /** Fully qualified domain name (FQDN) including the extension */ domainName: string; } export declare const RegistrationsGetRequest: S.Schema; export type RegistrationsGetResponsePrivacyMode = "redaction"; export declare const RegistrationsGetResponsePrivacyMode: any; export type RegistrationsGetResponseStatus = "active" | "registration_pending" | "expired" | "suspended" | "redemption_period" | "pending_delete"; export declare const RegistrationsGetResponseStatus: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface RegistrationsGetResponse { /** Whether the domain will be automatically renewed before expiration. */ autoRenew: boolean; /** When the domain was registered. Present when the registration resource exists. */ createdAt: string; /** Fully qualified domain name (FQDN) including the extension */ domainName: string; /** When the domain registration expires. Present when the registration is ready; may be null only while `status` is `registration_pending`. */ expiresAt: string; /** Whether the domain is locked for transfer. */ locked: boolean; /** Current WHOIS privacy mode for the registration. */ privacyMode: RegistrationsGetResponsePrivacyMode; /** Current registration status. */ status: RegistrationsGetResponseStatus; } export declare const RegistrationsGetResponse: S.Schema; export type RegistrationsListRequestDirection = "asc" | "desc"; export declare const RegistrationsListRequestDirection: any; export type RegistrationsListRequestSortBy = "registry_created_at" | "registry_expires_at" | "name"; export declare const RegistrationsListRequestSortBy: any; export interface RegistrationsListRequest { /** Identifier */ accountId: string; /** Opaque token from a previous response's `result_info.cursor`. */ cursor?: string; /** Sort direction for results. Defaults to ascending order. */ direction?: RegistrationsListRequestDirection | (string & {}); /** Number of items to return per page. */ perPage?: number; /** Column to sort results by. Defaults to registration date */ sortBy?: RegistrationsListRequestSortBy | (string & {}); } export declare const RegistrationsListRequest: S.Schema; export type RegistrationsListResultItemPrivacyMode = "redaction"; export declare const RegistrationsListResultItemPrivacyMode: any; export type RegistrationsListResultItemStatus = "active" | "registration_pending" | "expired" | "suspended" | "redemption_period" | "pending_delete"; export declare const RegistrationsListResultItemStatus: any; export interface RegistrationsListResultItem { /** Whether the domain will be automatically renewed before expiration. */ autoRenew: boolean; /** When the domain was registered. Present when the registration resource exists. */ createdAt: string; /** Fully qualified domain name (FQDN) including the extension */ domainName: string; /** When the domain registration expires. Present when the registration is ready; may be null only while `status` is `registration_pending`. */ expiresAt: string; /** Whether the domain is locked for transfer. */ locked: boolean; /** Current WHOIS privacy mode for the registration. */ privacyMode: RegistrationsListResultItemPrivacyMode; /** Current registration status. */ status: RegistrationsListResultItemStatus; } export declare const RegistrationsListResultItem: S.Schema; export type RegistrationsListResultList = Array; export declare const RegistrationsListResultList: S.Schema; export type RegistrationsListResponse = RegistrationsListResultList; export declare const RegistrationsListResponse: S.Schema; export type SearchRequestExtensionsList = Array; export declare const SearchRequestExtensionsList: S.Schema; export interface SearchRegistrarRequest { /** Identifier */ accountId: string; /** The search term to find domain suggestions. Accepts keywords, phrases, or full domain names. */ q: string; /** Limits results to specific domain extensions from the supported set. If not specified, */ extensions?: SearchRequestExtensionsList; /** Maximum number of domain suggestions to return. Defaults to 20 if not specified. */ limit?: number; } export declare const SearchRegistrarRequest: S.Schema; export type SearchResponseDomainsItemPricing = CheckResponseDomainsItemPricing; export declare const SearchResponseDomainsItemPricing: S.Schema; export type SearchResponseDomainsItemReason = "extension_not_supported_via_api" | "extension_not_supported" | "extension_disallows_registration" | "domain_premium" | "domain_unavailable"; export declare const SearchResponseDomainsItemReason: any; export type SearchResponseDomainsItemTier = "standard" | "premium"; export declare const SearchResponseDomainsItemTier: any; export interface SearchResponseDomainsItem { /** The fully qualified domain name (FQDN) in punycode format for internationalized domain names (IDNs). */ name: string; /** Indicates whether this domain appears available based on search data. Search results are non-authoritative and may be stale. - `true`: The domain appears available. Use POST /domain-check to confirm before registration. */ registrable: boolean; /** Annual pricing information for a registrable domain. This object is only */ pricing?: CheckResponseDomainsItemPricing | null; /** Present only when `registrable` is `false` on search results. Explains why the domain does not appear registrable through this API. These values are advisory; use POST /domain-check for authoritative status. */ reason?: SearchResponseDomainsItemReason | null; /** The pricing tier for this domain. Always present when `registrable` is `true`; */ tier?: SearchResponseDomainsItemTier | null; } export declare const SearchResponseDomainsItem: S.Schema; export type SearchResponseDomainsList = Array; export declare const SearchResponseDomainsList: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface SearchRegistrarResponse { /** Array of domain suggestions sorted by relevance. May be empty if no domains match the search criteria. */ domains: SearchResponseDomainsList; } export declare const SearchRegistrarResponse: S.Schema; export type CheckRegistrarError = CloudflareOpError; /** Performs real-time, authoritative availability checks directly against domain registries. Use this endpoint to verify a domain is available before attempting registration via `POST /registrations`. **Important:** Unlike the Search endpoint, these results are authoritative and reflect current registry status. Always check availability immediately before registration as domain status can change rapidly. **Note:** This endpoint uses POST to accept a list of domains in the request body. It is a read-only operation — it does not create, modify, or reserve any domains. */ export declare const checkRegistrar: API.OperationMethod; export type GetDomainError = Forbidden | CloudflareOpError; /** Show individual domain. */ export declare const getDomain: API.OperationMethod; export type GetRegistrationStatusError = CloudflareOpError; /** Returns the current status of a domain registration workflow. Use this endpoint to poll for completion when the POST response returned `202 Accepted`. The URL is provided in the `links.self` field of the workflow status response. Poll this endpoint until the workflow reaches a terminal state or a state that requires user attention. **Terminal states:** `succeeded` and `failed` are terminal and always have `completed: true`. **Non-terminal states:** - `action_required` has `completed: false` and will not resolve on its own. The workflow is paused pending user intervention. - `blocked` has `completed: false` and indicates the workflow is waiting on a third party such as the extension registry or losing registrar. Continue polling while informing the user of the delay. Use increasing backoff between polls. When `state: blocked`, use a longer polling interval and do not poll indefinitely. A naive polling loop that only checks `completed` can run indefinitely when `state: action_required`. Break explicitly on `action_required`: ```js let status; do { await new Promise(r => setTimeout(r, 2000)); status = await cloudflare.request({ method: 'GET', path: reg.result.links.self, }); } while ( !status.result.completed && status.result.state !== 'action_required' ); if (status.result.state === 'action_required') { // Surface context.action and context.confirmation_sent_to to the user. // Do not re-submit the registration request. } ``` */ export declare const getRegistrationStatus: API.OperationMethod; export type GetUpdateStatusError = CloudflareOpError; /** Returns the current status of a domain update workflow. Use this endpoint to poll for completion when the PATCH response returned `202 Accepted`. The URL is provided in the `links.self` field of the workflow status response. Poll this endpoint until the workflow reaches a terminal state or a state that requires user attention. Use increasing backoff between polls. When the workflow remains blocked on a third party, use a longer polling interval and do not poll indefinitely. */ export declare const getUpdateStatus: API.OperationMethod; export type ListDomainsError = Forbidden | CloudflareOpError; /** List domains handled by Registrar. */ export declare const listDomains: API.PaginatedOperationMethod; export type PutDomainError = RegistrarDomainNotOwned | RegistrarUpdateNotAllowed | Forbidden | CloudflareOpError; /** Update individual domain. */ export declare const putDomain: API.OperationMethod; export type RegistrationsCreateError = CloudflareOpError; /** Starts a domain registration workflow. This is a billable operation — successful registration charges the account's default payment method. All successful domain registrations are non-refundable — once the workflow completes with `state: succeeded`, the charge cannot be reversed. */ export declare const registrationsCreate: API.OperationMethod; export type RegistrationsEditError = CloudflareOpError; /** Updates an existing domain registration. By default, the server holds the connection for a bounded, server-defined amount of time while the update completes. Most updates finish within this window and return `200 OK` with a completed workflow status. If the update is still processing after this synchronous wait window, the server returns `202 Accepted`. Poll the URL in `links.self` to track progress. To skip the wait and receive an immediate `202`, send `Prefer: respond-async`. This endpoint currently supports updating `auto_renew` only. */ export declare const registrationsEdit: API.OperationMethod; export type RegistrationsGetError = CloudflareOpError; /** Returns the current state of a domain registration. This is the canonical read endpoint for a domain you own. It returns the full registration resource including current settings and expiration. When the registration resource is ready, both `created_at` and `expires_at` are present in the response. */ export declare const registrationsGet: API.OperationMethod; export type RegistrationsListError = CloudflareOpError; /** Returns a paginated list of domain registrations owned by the account. This endpoint uses cursor-based pagination. Results are ordered by registration date by default. To fetch the next page, pass the `cursor` value from the `result_info` object in the response as the `cursor` query parameter in your next request. An empty `cursor` string indicates there are no more pages. */ export declare const registrationsList: API.OperationMethod; export type SearchRegistrarError = CloudflareOpError; /** Searches for domain name suggestions based on a keyword, phrase, or partial domain name. Returns a list of potentially available domains with pricing information. **Important:** Results are non-authoritative and based on cached data. Always use the `/domain-check` endpoint to verify real-time availability before attempting registration. Suggestions are scoped to extensions supported for programmatic registration via this API (`POST /registrations`). Domains on unsupported extensions will not appear in results, even if they are available at the registry level. */ export declare const searchRegistrar: API.OperationMethod; //# sourceMappingURL=registrar.d.ts.map