import { type EvidenceCitation } from './citations.js'; import { type ProcessSpec } from './governance.js'; import type { PacketEvidenceBundle } from './analyzer.js'; import type { ProbeStatus } from './probe.js'; export declare const TERMSHARK_HANDOFF_SCHEMA: "aiwg.network-analysis.termshark-handoff.v1"; export interface TermsharkCapability { status: ProbeStatus; path: string | null; version: string | null; diagnostics: string[]; } export interface TermsharkFocus { frame?: number; stream?: { protocol: 'tcp' | 'udp'; id: number; }; } export interface TermsharkHandoffOptions { evidence: PacketEvidenceBundle; capturePath: string; contextDigest: string; displayFilter: string; termshark: TermsharkCapability; tsharkPath: string; configRoot: string; profile: { name: string; path?: string; }; focus?: TermsharkFocus; now?: () => Date; } export interface TermsharkHandoff { schema: typeof TERMSHARK_HANDOFF_SCHEMA; handoffId: string; status: 'ready' | 'unavailable' | 'incompatible'; diagnostics: string[]; evidenceBundleId: string; capturePath: string; captureDigest: string; analysisContextDigest: string; displayFilterDigest: string; effectiveFilterDigest: string; focus: TermsharkFocus; tool: { path: string | null; version: string | null; }; profile: { name: string; path?: string; digest?: string; }; configRoot: string; tsharkPath: string; tsharkVersion: string; command: ProcessSpec | null; commandPreview: string | null; createdAt: string; completionClaim: 'operator-returned-notes-only'; } export interface TermsharkLaunchHost { run(spec: ProcessSpec, options: { configRoot: string; tsharkPath: string; signal?: AbortSignal; }): Promise<{ exitCode: number | null; signal: NodeJS.Signals | null; }>; } export interface TermsharkReviewNote { analyst: string; recordedAt: string; note: string; citations: EvidenceCitation[]; source: 'operator-returned-note'; } export declare function createDefaultTermsharkLaunchHost(): TermsharkLaunchHost; export declare function createTermsharkHandoff(options: TermsharkHandoffOptions): Promise; export declare function launchTermsharkHandoff(handoff: TermsharkHandoff, action: { explicitOperatorAction: true; signal?: AbortSignal; }, host?: TermsharkLaunchHost): Promise<{ exitCode: number | null; signal: NodeJS.Signals | null; }>; export declare function recordTermsharkReview(handoff: TermsharkHandoff, evidence: PacketEvidenceBundle, input: { analyst: string; note: string; citations: EvidenceCitation[]; recordedAt?: string; }): TermsharkReviewNote; //# sourceMappingURL=termshark.d.ts.map