import { type StdinReadResult } from './stdin-read.js'; export type CometHookIntent = 'context' | 'write' | 'non-write' | 'unknown'; export interface CometHookRequest { intent: CometHookIntent; targets: string[]; toolName: string | null; task?: string; cwd?: string; sessionId?: string; } export interface CometHookAdapterDecision { allowed: boolean; reason: string; context?: string; diagnostic?: string; } export interface CometHookProcessOutput { exitCode: number; stdout: string; stderr: string; } export declare const COMET_HOOK_PLATFORM_IDS: Set; /** Resource addresses are not filesystem writes. Drive paths remain file targets. */ export declare function normalizeCometHookTargets(targets: readonly string[]): string[]; export declare function parseCometHookRequest(source: string, filePath?: string): CometHookRequest; export declare function readCometHookRequest(options?: { readStdin?: () => StdinReadResult | Promise; }): Promise; export declare function renderCometHookDecision(platformId: string, decision: CometHookAdapterDecision): CometHookProcessOutput; //# sourceMappingURL=hook-adapter.d.ts.map