declare const trustedCompletionReceiptBrand: unique symbol; declare const authenticatedOutcomeEnvelopeBrand: unique symbol; export declare const OUTCOME_WORKFLOWS: readonly ["setup", "references", "design-system", "canvas", "review", "ads", "product", "improve"]; export declare const OUTCOME_RESULTS: readonly ["succeeded", "failed", "blocked", "cancelled"]; export declare const OUTCOME_CATEGORIES: readonly ["accessibility", "composition", "copy", "design-system", "interaction", "quality", "delivery", "reliability", "security", "performance", "tooling"]; export type OutcomeWorkflow = typeof OUTCOME_WORKFLOWS[number]; export type OutcomeResult = typeof OUTCOME_RESULTS[number]; export type OutcomeCategory = typeof OUTCOME_CATEGORIES[number]; export interface CompletionReceipt { readonly schemaVersion: 1; readonly eventId: string; readonly projectId: string; readonly workflow: OutcomeWorkflow; readonly result: OutcomeResult; readonly categories: readonly OutcomeCategory[]; /** Integer in thousandths to avoid cross-runtime floating point drift. */ readonly confidence: number; readonly occurredAt: string; readonly versions: Readonly<{ runtime: string; agent: string; knowledge: string; }>; readonly evidenceHashes: readonly string[]; readonly protectedEvidenceRef?: `project-evidence:${string}`; } export interface SignedCompletionReceipt { readonly receipt: CompletionReceipt; readonly authentication: Readonly<{ algorithm: 'hmac-sha256'; keyId: string; signature: string; }>; } export interface TrustedCompletionReceipt extends CompletionReceipt { readonly [trustedCompletionReceiptBrand]: true; } export interface OutcomeEnvelope { readonly schemaVersion: 1; readonly eventId: string; readonly projectPseudonym: string; readonly workflow: OutcomeWorkflow; readonly result: OutcomeResult; readonly categories: readonly OutcomeCategory[]; readonly confidence: number; readonly occurredAt: string; readonly versions: Readonly<{ runtime: string; agent: string; knowledge: string; }>; readonly evidenceHashes: readonly string[]; readonly protectedEvidenceRef?: `project-evidence:${string}`; readonly integrity: Readonly<{ algorithm: 'sha256'; sha256: string; }>; readonly authentication: Readonly<{ algorithm: 'hmac-sha256'; keyId: string; signature: string; }>; } export interface AuthenticatedOutcomeEnvelope extends OutcomeEnvelope { readonly [authenticatedOutcomeEnvelopeBrand]: true; } export interface HmacAuthority { readonly keyId: string; readonly key: Uint8Array; } export interface CommitIntent { readonly kind: 'git-commit'; readonly atomic: true; readonly paths: readonly string[]; readonly message: string; readonly batchSha256: string; } export {};