export declare const PRIVATE_BOOTSTRAP_ACTION: "private_bootstrap_readback"; export interface PrivateBootstrapCommandInput { action: typeof PRIVATE_BOOTSTRAP_ACTION; runId?: string; fixtureId?: string; } export interface PrivateBootstrapAuthority { schemaVersion: "onboard-client-private-authority-v1"; runId: string; lifecycleId: string; packetRevision: number; packetHash: string; authorizationReceiptHash: string; workspaceReceipt: { workspaceId: string; workspaceName: string; effectIdentity: string; registrationReceiptHash: string; }; teamSnapshot: { configRevision: number; configHash: string; snapshotHash: string; ownerSlackUserId: string; allowedSlackUserIds: string[]; expectedBotId: string; teamId: string; }; target: { customerSlug: string; profileId: string; internalChannelName: string; }; } interface PrivateAdapterInput { mode: "apply" | "readback"; runId: string; lifecycleId: string; effectIdentity: string; requestFingerprint: string; authorityHash: string; workspaceId: string; teamId: string; profileId: string; internalChannelName: string; bindingHash?: string; membershipHash?: string; generationHash?: string; } export interface PrivateBootstrapRuntimeOptions { adminHome: string; adminStatePath?: string; workspaceAdapter?: (input: { runId: string; }) => Promise; provisionAdapter?: (input: PrivateAdapterInput) => Promise; profileAdapter?: (input: PrivateAdapterInput) => Promise; factAdapter?: (input: { runId: string; lifecycleId: string; bindingHash: string; }) => Promise; } type PrivateBootstrapErrorCode = "private_bootstrap_not_configured" | "private_bootstrap_input_invalid" | "private_bootstrap_state_insecure" | "private_bootstrap_state_corrupt" | "private_bootstrap_authority_invalid" | "private_bootstrap_authority_drift" | "private_bootstrap_workspace_adapter_unavailable" | "private_bootstrap_provision_adapter_unavailable" | "private_bootstrap_profile_adapter_unavailable" | "private_bootstrap_fact_adapter_unavailable" | "private_bootstrap_in_progress" | "private_bootstrap_step_uncertain" | "private_bootstrap_step_stale_revision" | "private_bootstrap_provision_invalid" | "private_bootstrap_facts_unavailable" | "private_bootstrap_facts_stale" | "private_bootstrap_facts_invalid" | "private_bootstrap_profile_isolation_invalid"; interface CallbackCounts { workspace: number; provision: number; provisionCreate: number; provisionReadback: number; fact: number; profile: number; profileCreate: number; profileReadback: number; } interface PrivateBootstrapNeedsAttentionResult { ok: false; kind: "private_bootstrap_receipt"; action: typeof PRIVATE_BOOTSTRAP_ACTION; fixtureId: string | null; runId: string | null; status: "needs_attention"; code: PrivateBootstrapErrorCode; callbackCounts: CallbackCounts; writeAttempted: boolean; replayed: boolean; } interface PrivateBootstrapReadyResult { ok: true; kind: "private_bootstrap_receipt"; action: typeof PRIVATE_BOOTSTRAP_ACTION; fixtureId: string | null; runId: string; status: "ready"; authorityHash: string; workspaceId: string; teamId: string; internalChannelId: string; profileId: string; bindingHash: string; membershipHash: string; generationHash: string; memberCount: number; stage: "onboarding_started"; hermes_host: "pending"; stepEffects: { privateChannel: { effectIdentity: string; revision: number; status: "reconciled"; }; profile: { effectIdentity: string; revision: number; status: "reconciled"; }; }; callbackCounts: CallbackCounts; receiptHash: string; writeAttempted: boolean; replayed: boolean; } export type PrivateBootstrapCommandResult = PrivateBootstrapNeedsAttentionResult | PrivateBootstrapReadyResult; export declare function adminOnboardClientPrivateBootstrap(input: PrivateBootstrapCommandInput, options: PrivateBootstrapRuntimeOptions): Promise; export {};