import type { Clock, KernelPaths } from "../kernel/types.js"; import type { WorkerMcpBinding } from "./mcp/worker-mcp.js"; export { buildCodexWorkerHookConfig } from "../kernel/providers.js"; export interface ClaudeWorkerHookResult { readonly ok: boolean; readonly reason?: string; readonly created?: number; } export type CodexWorkerHookResult = ClaudeWorkerHookResult; /** * Translate one native Claude hook into one closed OMS provider event. * Raw provider input is never persisted; only its digest is used for redelivery identity. */ export declare function ingestClaudeWorkerHook(input: { readonly paths: KernelPaths; readonly clock: Clock; readonly binding: WorkerMcpBinding; readonly input: unknown; }): ClaudeWorkerHookResult; /** * Codex reports its own native session id. OMS treats that value as untrusted * occurrence input and routes only through the immutable logical worker * session sealed in the launch binding. */ export declare function ingestCodexWorkerHook(input: { readonly paths: KernelPaths; readonly clock: Clock; readonly binding: WorkerMcpBinding; readonly input: unknown; }): CodexWorkerHookResult; /** * Fixed command/argv hook settings. The shell never parses task or provider input. */ export declare function buildClaudeWorkerHookSettings(input: { readonly nodeExecutable: string; readonly entrypoint: string; readonly bindingPath: string; readonly userHome: string; readonly workspaceRoot: string; readonly omsRoot: string; readonly worktreePath: string; readonly worktreeGitDir: string; readonly commonGitDir: string; readonly branch: string; }): Readonly>;