export declare const AUTO_REVIEW_STARTED = "auto-review/started"; export declare const AUTO_REVIEW_COMPLETED = "auto-review/completed"; export declare const AUTO_REVIEW_START_EVENT = "auto-review/start"; export declare const AUTO_REVIEW_STATUS_EVENT = "auto-review/status"; export declare const AUTO_REVIEW_END_EVENT = "auto-review/end"; export interface AutoReviewStartData { readonly schemaVersion: 1; readonly reviewId: string; readonly callId: string | null; readonly toolName: string; readonly targetKind: string; readonly targetSummary: string; readonly trajectoryEnabled?: boolean; readonly startedAt: number; } export interface AutoReviewStatusData { readonly schemaVersion: 1; readonly reviewId: string; readonly phase: 'awaiting-manual-approval'; readonly changedAt: number; } export interface AutoReviewEndData { readonly schemaVersion: 1; readonly reviewId: string; readonly completedAt: number; readonly durationMs: number; readonly automatedOutcome: string; readonly finalOutcome: string; readonly decisionSource: string; readonly guardianStatus: string; readonly guardianReason?: string | null; readonly riskLevel: string | null; readonly userAuthorization: string | null; readonly failure: string | null; readonly manualOverrideStatus: string; readonly auditPersisted: boolean; readonly auditDisabled: boolean; readonly auditFailure: string | null; } declare module '@deepseek-ai/dsh-session/types' { interface SessionEventMap { 'auto-review/start': AutoReviewStartData; 'auto-review/status': AutoReviewStatusData; 'auto-review/end': AutoReviewEndData; } } export declare function guardianReasonSummary(value: string | null): string | null; export interface AutoReviewStartedPayload extends AutoReviewStartData { readonly sessionId: string; } export interface AutoReviewCompletedPayload extends AutoReviewStartData, AutoReviewEndData { readonly sessionId: string; } interface ObserverContext { events?: { dispatch?: (mode: 'emit', args: [string, unknown]) => Array<(payload: unknown) => unknown>; }; logger?: { warn?: (message: string) => void; }; } export declare function emitObserved(ctx: ObserverContext, name: string, payload: T): T; export {};