export interface VerifiedPromotionSource { id: string; kind: "github"; repository: string; ref: string; pinnedSha: string; } export interface VerifiedPromotionFile { sourceRel: string; targetRel: string; contents: Buffer; sha256: string; } export type VerifiedPromotionTrustLockPreimage = { state: "absent"; } | { state: "present"; sourceBytes: Buffer; sourceSha256: string; mode?: number; }; export interface VerifiedPromotionAuthorityPreimage { sourceBytes: Buffer; sourceSha256: string; mode?: number; } export interface VerifiedPromotionSnapshot { source: VerifiedPromotionSource; selectedSkills: string[]; files: VerifiedPromotionFile[]; artifactHashes: Array<{ path: string; sha256: string; }>; nextTrustLockBytes: Buffer; trustLockPreimage: VerifiedPromotionTrustLockPreimage; approvalLockPreimage: VerifiedPromotionAuthorityPreimage; } declare const verifiedPromotionHandleBrand: unique symbol; export interface VerifiedPromotionHandle { readonly [verifiedPromotionHandleBrand]: never; } export interface VerifiedPromotionChannel { issue(snapshot: unknown): VerifiedPromotionHandle; read(candidate: unknown): VerifiedPromotionSnapshot | undefined; } export declare function createVerifiedPromotionChannel(): VerifiedPromotionChannel; export {};