import { type RuntimeExclusiveLease } from '@opensip-cli/core'; import { type PromotionEntryIdentity, type StablePromotionDirectory } from './runtime-promotion-filesystem-io.js'; import type { AuthorizeRuntimePromotionFilesystemInput, RuntimePromotionFilesystemAction, RuntimePromotionFilesystemAuthority, RuntimePromotionFilesystemDependencies, RuntimePromotionFilesystemPaths } from './runtime-promotion-filesystem-types.js'; import type { RuntimePromotionJournal } from './runtime-promotion-journal-schema.js'; import type { DurablePromotionJournal, RuntimePromotionJournalController } from './runtime-promotion-journal.js'; export interface RuntimePromotionDirectorySnapshot { readonly path: string; readonly identity: PromotionEntryIdentity; } export interface RuntimePromotionFilesystemCapabilityState { readonly action: RuntimePromotionFilesystemAction; readonly projectRoot: RuntimePromotionDirectorySnapshot; readonly destinationParent?: RuntimePromotionDirectorySnapshot; readonly sourceParent?: RuntimePromotionDirectorySnapshot; readonly paths: RuntimePromotionFilesystemPaths; readonly controller: RuntimePromotionJournalController; readonly lease: RuntimeExclusiveLease; readonly receipt: DurablePromotionJournal; readonly journal: RuntimePromotionJournal; readonly cleanupSlot: AuthorizeRuntimePromotionFilesystemInput['cleanupSlot']; readonly dependencies: RuntimePromotionFilesystemDependencies; } export declare function openCapabilityDirectory(snapshot: RuntimePromotionDirectorySnapshot, description: string): StablePromotionDirectory; /** Issue an exact-object authority that can perform one and only one action. */ export declare function authorizeRuntimePromotionFilesystem(input: AuthorizeRuntimePromotionFilesystemInput): Promise; /** Consume before filesystem inspection so a failure never leaves reusable authority. */ export declare function consumeRuntimePromotionFilesystemAuthority(authority: RuntimePromotionFilesystemAuthority, expectedAction: RuntimePromotionFilesystemAction): Promise; //# sourceMappingURL=runtime-promotion-filesystem-authority.d.ts.map