import { type SkillActiveState } from "../hooks/keyword-detector.js"; import { reconcileHudForPromptSubmit } from "../hud/reconcile.js"; type CodexHookEventName = "SessionStart" | "PreToolUse" | "PostToolUse" | "UserPromptSubmit" | "PreCompact" | "PostCompact" | "Stop"; type CodexHookPayload = Record; interface NativeHookDispatchOptions { cwd?: string; sessionOwnerPid?: number; reconcileHudForPromptSubmitFn?: typeof reconcileHudForPromptSubmit; } export interface NativeHookDispatchResult { hookEventName: CodexHookEventName | null; omxEventName: string | null; skillState: SkillActiveState | null; outputJson: Record | null; } export declare function mapCodexHookEventToOmxEvent(hookEventName: CodexHookEventName | null): string | null; export declare function resolveSessionOwnerPidFromAncestry(startPid: number, options?: { readParentPid?: (pid: number) => number | null; readProcessCommand?: (pid: number) => string; }): number | null; export declare function looksLikeGoalCompletionPrompt(text: string): boolean; export declare function dispatchCodexNativeHook(payload: CodexHookPayload, options?: NativeHookDispatchOptions): Promise; export declare function isCodexNativeHookMainModule(moduleUrl: string, argv1: string | undefined): boolean; export declare function runCodexNativeHookCli(): Promise; export {}; //# sourceMappingURL=codex-native-hook.d.ts.map