import type { LocalVault, ScopedLocalVault, LocalProviderSessionBinding } from '@dharma-ai-labs/agent-fabric-local-vault'; import type { CodexLocalWorkCapture } from '@dharma-ai-labs/agent-fabric-provider-adapters/experimental/codex-session'; import { type RepositoryPackageSnapshot } from './repositoryPackage.js'; import type { OrganizationPolicy } from '@dharma-ai-labs/agent-fabric-policy'; import type { NamedSessionTaskExportResult } from './namedSessionTaskExport.js'; export interface NamedSessionRepositoryState { schema: 'dharma.named-session-repository-state/v1'; workId: string; captureHash: string; sourceSnapshotHash: string; resultSnapshotHash: string; sourceContentHash: string; resultContentHash: string; activeBundleId: string; activeBundleHash: string; packageContent?: { manifestHash: string; catalogHash: string; skillsHash: string; }; providerContext?: { retainedContextHash: string; contextContentHash: string; runtimeVersion: string; requestedModel: string; executedModel: null; replayMode: 'task_level'; }; portableExport?: Omit, 'bytes'> | Exclude; exportOutbox?: { state: 'pending'; workKey: string; descriptorHash: string; acceptedLearningObservation: false; }; acceptedLearningObservation: false; } export type NamedSessionRepositoryStateDisposition = NamedSessionRepositoryState | { state: 'not_authorized'; acceptedLearningObservation: false; } | { state: 'blocked'; code: 'source_state_unavailable' | 'public_context_unavailable' | 'runtime_version_unavailable'; acceptedLearningObservation: false; }; export declare function retainNamedSessionRepositoryState(input: { vault: LocalVault | ScopedLocalVault; binding: LocalProviderSessionBinding; workId: string; capture: CodexLocalWorkCapture; before: RepositoryPackageSnapshot; after: RepositoryPackageSnapshot; activeBundleId: string; activeBundleHash: string; taskExport?: { policy: OrganizationPolicy; contextBytes: Uint8Array; contextHash: string; }; }): Promise; //# sourceMappingURL=namedSessionRepositoryState.d.ts.map