import { finalizeCloudflareBootstrapAcceptance, verifyCloudflareBootstrapAcceptance, type AttendedCloudflareBootstrapRequest, type CloudflareBootstrapEvidence, type CloudflareBootstrapAcceptanceEvidence, type CloudflareBootstrapFinalizeRequest, type CloudflareBootstrapPhaseRunner, type CloudflareBootstrapTokens, type CloudflareBootstrapNodeCoordinates } from '../cloudflare-bootstrap'; import { discoverCloudflareBootstrapResources, type CloudflareBootstrapDiscovery } from '../cloudflare-edge'; export interface CloudflareBootstrapCommandConfig { format: 1; kind: 'forgezero-cloudflare-bootstrap-request'; checkpointPath: string; coordinates: AttendedCloudflareBootstrapRequest['coordinates']; } /** * Human-reviewable discovery coordinates used by the integrated platform * launch. Cloudflare ids are deliberately absent: the two hidden tokens resolve * and bind them immediately before apply. */ export interface CloudflareBootstrapDiscoveryCommandConfig { format: 1; kind: 'forgezero-cloudflare-bootstrap-discovery-request'; checkpointPath: string; discovery: { zoneName: string; kvNamespaceTitle: string; workerScriptName?: string; endpoint?: string; producer?: string; }; nodes: readonly CloudflareBootstrapNodeCoordinates[]; } export interface CloudflareBootstrapCommandPlan { checkpointPath: string; nodes: readonly CloudflareBootstrapNodeCoordinates[]; discovery?: CloudflareBootstrapDiscoveryCommandConfig['discovery']; } export interface CloudflareBootstrapCommandDependencies { run?: CloudflareBootstrapPhaseRunner; write?: (text: string) => void; } export declare function discoverCloudflareBootstrapCommandResources(input: { zoneName: string; kvNamespaceTitle: string; workerScriptName?: string; tokens: CloudflareBootstrapTokens; }, dependencies?: { fetcher?: typeof fetch; discover?: typeof discoverCloudflareBootstrapResources; }): Promise; export interface CloudflareBootstrapFinalizeConfig { format: 1; kind: 'forgezero-cloudflare-bootstrap-finalize'; checkpointPath: string; acceptancePath: string; } /** * Construct the exact reviewed JSON shape used by both the interactive CLI and * the strict file reader. Token values are deliberately not accepted here. */ export declare function createCloudflareBootstrapCommandConfig(input: { checkpointPath: string; coordinates: AttendedCloudflareBootstrapRequest['coordinates']; }): CloudflareBootstrapCommandConfig; /** Create the secret-free, name-based request used by one-command genesis. */ export declare function createCloudflareBootstrapDiscoveryCommandConfig(input: { checkpointPath: string; discovery: CloudflareBootstrapDiscoveryCommandConfig['discovery']; nodes: readonly CloudflareBootstrapNodeCoordinates[]; }): CloudflareBootstrapDiscoveryCommandConfig; /** * Read reviewed non-secret coordinates for the attended operator phase. Raw * token values and a persisted mode are not schema fields. */ export declare function readCloudflareBootstrapCommandConfig(path: string, mode: 'plan' | 'apply'): AttendedCloudflareBootstrapRequest; export declare function readCloudflareBootstrapDiscoveryCommandConfig(path: string): CloudflareBootstrapDiscoveryCommandConfig; /** Read either supported request shape without contacting Cloudflare. */ export declare function readCloudflareBootstrapCommandPlan(path: string): CloudflareBootstrapCommandPlan; /** Resolve name selectors with hidden credentials immediately before apply. */ export declare function resolveCloudflareBootstrapCommandConfig(path: string, tokens: CloudflareBootstrapTokens, dependencies?: { discover?: typeof discoverCloudflareBootstrapCommandResources; }): Promise; export declare function runCloudflareBootstrapCommand(configPath: string, apply: boolean, tokens?: CloudflareBootstrapTokens, dependencies?: CloudflareBootstrapCommandDependencies): Promise; export declare function runCloudflareBootstrapVerificationCommand(checkpointPath: string, dependencies?: { verify?: typeof verifyCloudflareBootstrapAcceptance; write?: (text: string) => void; }): Promise; export declare function readCloudflareBootstrapFinalizeConfig(path: string): CloudflareBootstrapFinalizeRequest; export declare function runCloudflareBootstrapFinalizeCommand(configPath: string, dependencies?: { finalize?: typeof finalizeCloudflareBootstrapAcceptance; write?: (text: string) => void; }): Promise;