import { observeSpaceInitialization, spaceSchemaReadFailure, type BrokerConnectionIdentityObservation, type ChannelRegistryFile, type DeliveryClass } from "@cotal-ai/core"; export interface ExistingSpaceSchemaInput { root: string; space: string; /** Repeats the registration, never overrides it. */ server?: string; /** The selected deployment profile, not an inference from daemon liveness. */ deliveryClass: DeliveryClass; seed?: ChannelRegistryFile; } type InitializationObservation = Awaited> | { state: ReturnType; operation: "registry-open" | "registry-observe"; }; /** Private inspection data can include registry text. Callers must select public coordinates * for reports, not serialize this result wholesale. This is not an apply-plan constructor. */ export declare function inspectExistingSpaceSchema(input: ExistingSpaceSchemaInput): Promise<{ kind: "existing-space-schema-inspection"; endedAt: string; atomicSnapshot: false; target: import("@cotal-ai/workspace").NativeServiceTarget; connection: { identity: string | null; profile: "provisioner" | "explicit-open"; recordedAccount: string | null; currentSigningKey: string | null; expiresAt: number | null; reportedServerId: string; localSignatureChecked: boolean; brokerConnectionEstablished: true; }; resources: { kind: "space-resource-observations"; space: string; observations: import("@cotal-ai/core").SpaceSchemaObservation[]; deadlineMs: number; deadlineReached: boolean; readerRequestCancellationEstablished: false; scope: "declared resources through the supplied read port; server/account/mode binding is not established"; completeSpaceSchema: false; connectionAuthorityChecked: false; absenceAuthoritativelyProven: false; applyPermitted: false; writes: readonly []; }; initialization: InitializationObservation; initializationComparison: { kind: "space-initialization-diff"; space: string; registry: { bucket: string; stream: string; }; rows: import("@cotal-ai/core").SpaceInitializationDiffRow[]; scope: "existing-row native seed/profile comparison; private revision candidates are not accepted write plans"; registryFieldPolicy: "closed-native-fields"; revisionGuardsApplied: false; connectionAuthorityChecked: false; absenceAuthoritativelyProven: false; applyPermitted: false; writes: readonly []; } | null; nativeConnectionIdentity: BrokerConnectionIdentityObservation | null; readerCloseObserved: boolean; credentialRevocationProven: false; scope: "registered explicit open/static target and one same-mode native reader connection; not accepted apply authority or authoritative absence"; connectionAuthorityCheckedForApply: false; absenceAuthoritativelyProven: false; applyPermitted: false; writes: readonly []; }>; export {}; //# sourceMappingURL=space-schema-inspection.d.ts.map