import * as z from "zod"; import { CLOUDFLARE_PAGE_INFO_SCHEMA } from "@automate.ax/integration-contracts/cloudflare"; import type { IntegrationScopeRequirement } from "../../automation/integrations.js"; export declare const CLOUDFLARE_ACCOUNT_SETTINGS_READ_SCOPE = "account-settings.read"; export declare const CLOUDFLARE_ZONE_READ_SCOPE = "zone.read"; export declare const CLOUDFLARE_ZONE_WRITE_SCOPE = "zone.write"; export declare const CLOUDFLARE_DNS_READ_SCOPE = "dns.read"; export declare const CLOUDFLARE_DNS_WRITE_SCOPE = "dns.write"; export declare const CLOUDFLARE_CACHE_PURGE_SCOPE = "cache.purge"; export declare const CLOUDFLARE_HEALTH_CHECK_READ_SCOPE = "healthcheck.read"; export declare const CLOUDFLARE_HEALTH_CHECK_WRITE_SCOPE = "healthcheck.write"; export declare const CLOUDFLARE_NOTIFICATIONS_READ_SCOPE = "notifications.read"; export declare const CLOUDFLARE_NOTIFICATIONS_WRITE_SCOPE = "notifications.write"; export declare const CLOUDFLARE_BROWSER_RENDERING_WRITE_SCOPE = "browser-rendering.write"; /** * Offers Cloudflare OAuth with an API-token fallback for one exact permission. * * @param requiredScope - Least-privilege Cloudflare OAuth scope. */ export declare function cloudflareAccountRequirement(requiredScope: IntegrationScopeRequirement): { readonly connections: readonly [{ readonly connectionMethodId: "oauth"; readonly requiredScope: IntegrationScopeRequirement; }, { readonly connectionMethodId: "api-token"; }]; }; export declare const CLOUDFLARE_ID_SCHEMA: z.ZodString; export declare const CLOUDFLARE_PAGE_INPUT_SCHEMA: { page: z.ZodPrefault; perPage: z.ZodPrefault; }; /** * Builds the public output schema for one Cloudflare page. * * @param item - Schema for one normalized result item. */ export declare function cloudflarePageSchema(item: T): z.ZodObject<{ items: z.ZodArray; pageInfo: z.ZodOptional; page: z.ZodOptional; perPage: z.ZodOptional; totalCount: z.ZodOptional; totalPages: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; /** * Renames a provider page into the public result shape. * * @param page - Normalized provider page. * @param page.result - Normalized result items. * @param page.resultInfo - Optional provider pagination metadata. */ export declare function toCloudflarePage(page: { result: T[]; resultInfo?: z.output; }): { items: T[]; pageInfo: { count?: number | undefined; page?: number | undefined; perPage?: number | undefined; totalCount?: number | undefined; totalPages?: number | undefined; } | undefined; }; //# sourceMappingURL=lib.d.ts.map