import type { Command } from "commander";
import type { RuntimeHookEvent, RuntimeTaskHookActivity } from "../core/api-contract.js";
interface CodexWatcherState {
    lastTurnId: string;
    lastApprovalId: string;
    lastExecCallId: string;
    lastActivityFingerprint: string;
    approvalFallbackSeq: number;
    offset: number;
    remainder: string;
    currentSessionScope: "unknown" | "root" | "descendant";
}
export declare function inferHookSourceFromPayload(payload: Record<string, unknown> | null): string | null;
export declare function createCodexWatcherState(): CodexWatcherState;
export declare function parseCodexEventLine(line: string, state: CodexWatcherState): {
    event: RuntimeHookEvent;
    metadata?: Partial<RuntimeTaskHookActivity>;
} | null;
export declare function buildCodexWrapperChildArgs(agentArgs: string[], shouldWatchSessionLog: boolean): string[];
export declare function registerHooksCommand(program: Command): void;
export {};
//# sourceMappingURL=hooks.d.ts.map