import { z } from "zod"; import { type ProductProfile } from "./profile.js"; import { type RuntimeProcess } from "./process.js"; import { writeHookJson } from "./files.js"; export { writeHookJson }; export declare function codexHookConfigSchema(profile: ProductProfile): z.ZodObject<{ schema: z.ZodLiteral; enabled: z.ZodBoolean; codex_home: z.ZodString; binary: z.ZodString; command: z.ZodString; node: z.ZodString; hook: z.ZodString; stale_processes: z.ZodArray>; }, z.core.$strict>; export type CodexHookConfig = { schema: string; enabled: boolean; codex_home: string; binary: string; command: string; node: string; hook: string; stale_processes: { pid: number; started_identity: string; }[]; }; export declare function readCodexHookConfig(profile: ProductProfile, directory?: string): CodexHookConfig | null; export declare function codexInputDirectory(root: string, home: string, thread: string): string; export declare const hookInputSchema: z.ZodObject<{ delivery_id: z.ZodUUID; thread_id: z.ZodUUID; text_sha256: z.ZodString; }, z.core.$strict>; export declare function answerDigest(text: string): string; export declare function registerCodexHookInput(home: string, thread: string, id: string, text: string, root: string): void; /** 公式キューへ入らなかった配送の所有記録を消す。呼ぶのは、その記録を書いた送信だけ。 */ export declare function withdrawCodexHookInput(home: string, thread: string, id: string, root: string): void; export declare function finishCodexHookSubmission(home: string, thread: string, id: string, root: string): void; export declare function codexHookDeliveryState(home: string, thread: string, id: string, root: string): "sending" | "unknown" | null; export declare function ownedCodexHooks(profile: ProductProfile, response: any, command: string, file: string): any[]; export declare function assertCodexHooksReady(profile: ProductProfile, response: any, command: string, file: string): void; export declare function assertCodexHookParentCurrent(profile: ProductProfile, config: CodexHookConfig, rows?: RuntimeProcess[], pid?: number): void;