import { type ProductProfile } from "./profile.js"; /** Codexの同期hook(PostToolUse/Stop)。stdoutはCodexの公式hook出力だけに使う。失敗をStop継続のexit 2に変換しない。 */ export declare function runCodexHookMain(profile: ProductProfile, directory?: string | undefined): Promise; /** * Claude Codeが起動する公式hook(PreToolUse/PostToolUse/Stop/SessionEnd)。本文はstderrへ返す。 * Grokは共有の`~/.claude/settings.json`のhookも動かす。Grokの親への配送はhookを使わないので、Grokからの起動では何もせず0で終わる。 * 失敗の2を返すと、GrokはStopを「止めずに続ける」、PreToolUseを「拒否」と読む。見分けは、Grokだけが入力へ入れる`hookEventName`。 */ export declare function runClaudeHookMain(profile: ProductProfile, root?: string): Promise; /** * Cursorが起動する公式hook。差し込み文をstdoutのJSONへ返す。 * rootを複数渡すと、各置き場で結び付けと差し込みを行う。Cursor CLIはMCPを削った環境で起動し、hookは画面側の環境で起動するため、 * 環境から置き場を決める製品はMCPとhookで置き場が割れる。配送記録の無い置き場では何もしない。 */ export declare function runCursorHookMain(profile: ProductProfile, root?: string | readonly string[]): Promise; /** Cursor親の背景受信。 */ export declare function runCursorReceiveMain(profile: ProductProfile, argv?: string[], root?: string | readonly string[]): Promise; /** * channelの背景受信(Cursorのidle時、Grok等)。受け取った本文を1行のJSONで出して終わる(0=受取、3=期限切れ、4=閉鎖、1=誤り)。 * 受取と期限切れの結果には、同じ受信を張り直すための next_wait_process を付ける。 */ export declare function runChannelReceiveMain(profile: ProductProfile, argv?: string[], script?: string | undefined): Promise; /** 入口ファイルが直接起動されたか(importされただけでは動かない)。Windowsは大文字小文字を区別しない。 */ export declare function isDirectExecution(moduleUrl: string, entry?: string | undefined): boolean;