import { type WorktreeDeliveryConfig, type ProviderObservation, type WorktreeRecord, type WorkspaceAdoptionInput, type WorkspaceAdoptionManifest, type RetentionAudit, type ReviewReceipt, type ReviewReceiptScope, type WorkspaceAudit, type WorkspaceIntegrationCheck, type WorkspaceAiDecision, type WorkspaceAiReviewResult, type WorktreeApprovalPolicy, type WorktreeHostBinding, type WorktreeHostBindingObservation, type WorkspaceLease, type WorkspacePlan, type WorkspaceReceipt, type WorkspaceStatus, type WorkspaceTopology } from "./types.js"; export { githubEndpointRepository, remotePushEndpoint, remoteRefHead } from "../repository/remote.js"; export declare function parseWorkspaceAdoptionManifest(input: unknown): WorkspaceAdoptionManifest; export declare function loadConfig(root: string): { configured: boolean; config: WorktreeDeliveryConfig; legacyBinding?: WorktreeHostBinding; }; export declare function parseWorktreePorcelain(output: string): WorktreeRecord[]; /** Shared local safety facts; never resolves Provider credentials or changes project tracking. */ export declare function workspaceLocalInventory(projectRoot: string, adoptionSafe?: boolean): { root: string; commonDir: string; loadedConfig: { configured: boolean; config: WorktreeDeliveryConfig; legacyBinding?: WorktreeHostBinding; }; hostBinding: WorktreeHostBindingObservation; loadedLeases: { values: WorkspaceLease[]; errors: string[]; }; observedWorktrees: WorktreeRecord[]; topology: WorkspaceTopology; qualificationResources: { approvalRef: string; reservedAt: string; phase: "reserved" | "mkdir-owned" | "add-started" | "ready" | "released"; status: "reserved" | "mkdir-owned" | "add-started" | "ready" | "released" | "retained"; authorityRoot: string; path: string; operations: ["import-source", "create-once", "observe", "close-exact"]; branch: string; fixtureId: string; resourceId: string; clientId: string; sourceSha: string; }[]; capacity: { limit: number; used: number; available: number; }; }; export declare function workspaceStatus(projectRoot: string, options?: { adoptionSafe?: boolean; providerWorkItems?: string[]; providerObservation?: ProviderObservation; }): WorkspaceStatus; export declare function auditWorkspace(projectRoot: string): WorkspaceAudit; export declare function validateBranch(root: string, branch: string): void; export declare function validateTarget(binding: WorktreeHostBinding, target: string): string; export declare function planWorkspaceConfiguration(args: { projectRoot: string; mode?: "audit-only" | "enforced"; managementBranch?: string; maxPersistentWorktrees?: number; leaseTtlHours?: number; reviewTtlMinutes?: number; remoteBranchRetentionDays?: number; remoteBranchDeletion?: boolean; allowedRoots?: string[]; protectedRoots?: string[]; topology?: "container-v1"; workspaceContainer?: string; approval?: WorktreeApprovalPolicy; provider?: WorktreeDeliveryConfig["provider"]; providerObservation?: ProviderObservation; now?: Date; }): { plan: WorkspacePlan; path: string; }; export declare function planWorkspaceMigration(args: { projectRoot: string; workspaceContainer: string; now?: Date; }): { plan: WorkspacePlan; path: string; }; export declare function integrationCheckWorkspace(args: { projectRoot: string; workItem: string; target?: string; temporaryRootParent?: string; cleanupTemporaryTree?: (path: string) => void; }): WorkspaceIntegrationCheck; export declare function planWorkspaceAllocation(args: { projectRoot: string; workItem: string; branch: string; path?: string; owner: string; thread?: string; startPoint?: string; now?: Date; }): { plan: WorkspacePlan; path: string; }; export declare function planWorkspaceAdoption(args: { projectRoot: string; items: WorkspaceAdoptionInput[]; now?: Date; }): { plan: WorkspacePlan; path: string; }; export declare function planWorkspaceClose(args: { projectRoot: string; workItem: string; acceptedCommit: string; disposeIgnoredPaths?: string[]; now?: Date; }): { plan: WorkspacePlan; path: string; }; export declare function planWorkspaceRebind(args: { projectRoot: string; workItem: string; branch: string; now?: Date; }): { plan: WorkspacePlan; path: string; }; export declare function planWorkspaceRenew(args: { projectRoot: string; workItem: string; now?: Date; }): { plan: WorkspacePlan; path: string; }; export declare function planWorkspaceRecover(args: { projectRoot: string; path: string; now?: Date; }): { plan: WorkspacePlan; path: string; }; export declare function reviewAndApplyWorkspacePlan(args: { projectRoot: string; planPath: string; intent: string; now?: Date; }): WorkspaceAiReviewResult; export declare function applyWorkspaceMigration(args: { projectRoot: string; planPath: string; approval: string; recoveryApprovalRef?: string; now?: Date; testFailAfterMove?: boolean; }): WorkspaceReceipt; export declare function applyWorkspacePlan(args: { projectRoot: string; planPath: string; approval: string; authorization?: WorkspaceAiDecision; now?: Date; recoveryApprovalRef?: string; testFailAfterLeaseWrites?: number; testFailCloseAfterWorktreeRemove?: boolean; testFailRemoteDeleteAfterPush?: boolean; }): WorkspaceReceipt; export declare function rollbackWorkspaceChange(args: { projectRoot: string; changeId: string; recoveryApprovalRef?: string; now?: Date; }): WorkspaceReceipt; export declare function reviewWorkspace(args: { projectRoot: string; commit: string; command: string[]; hostStateRoot?: string; now?: Date; }): ReviewReceipt; export declare function retentionAuditWorkspace(args: { projectRoot: string; hostStateRoot?: string; now?: Date; receiptScope?: ReviewReceiptScope; }): RetentionAudit; //# sourceMappingURL=service.d.ts.map