import { type AuthProvider } from "@cotal-ai/core"; import { type ReviewedIdentityCleanup } from "../commands/clean.js"; interface PathObservation { path: string; kind: "file" | "directory" | "absent"; identity: string | null; } export interface ResetSpaceIdentityPlan { root: string; space: string; controlIdentity: string; paths: readonly PathObservation[]; provider: AuthProvider | null; providerKeys: readonly string[]; agentKeys: readonly string[]; secretKeys: readonly string[]; } /** A complete bounded inventory of the native clean-all filesystem composition, not hosted data. * Provider declarations are read without executing their deletion hooks. */ export declare function planResetSpaceIdentity(root: string, space: string, mode: "open" | "auth" | "user"): Promise; export declare function recheckResetSpaceIdentity(plan: ResetSpaceIdentityPlan): void; /** Constrain the native delete hook and raw removals to the reviewed remaining tree. A newly * added path or changed file stops cleanup rather than expanding the confirmation's scope. */ export declare function reviewedResetIdentityCleanup(plan: ResetSpaceIdentityPlan, onSecretRemoved: (path: string) => void): ReviewedIdentityCleanup; export declare function resetSpaceIdentityProjection(plan: ResetSpaceIdentityPlan): { provider: string | null; providerKeyCount: number; paths: { path: string; state: "absent" | "file" | "directory"; }[]; trust: "validated-native-local-chain"; }; export declare function assertResetIdentityRemoved(plan: ResetSpaceIdentityPlan): void; export {}; //# sourceMappingURL=reset-space-plan.d.ts.map