/** * adapters/kiro/hooks — Kiro CLI hook definitions and matchers. * * Kiro CLI hook system reference: * - Hooks are in agent config files (~/.kiro/agents/.json) under "hooks" key * - Each hook type maps to an array of { matcher, command } entries * - Hook names: preToolUse, postToolUse, agentSpawn, userPromptSubmit * - Input: JSON on stdin * - Output: exit codes (0=allow, 2=block) + stdout/stderr * * Source: https://kiro.dev/docs/cli/custom-agents/configuration-reference#hooks-field */ export declare const HOOK_TYPES: { readonly PRE_TOOL_USE: "preToolUse"; readonly POST_TOOL_USE: "postToolUse"; readonly AGENT_SPAWN: "agentSpawn"; readonly USER_PROMPT_SUBMIT: "userPromptSubmit"; }; export type HookType = (typeof HOOK_TYPES)[keyof typeof HOOK_TYPES]; export declare const HOOK_SCRIPTS: Record; export declare const REQUIRED_HOOKS: string[]; export declare const OPTIONAL_HOOKS: string[]; /** * Check if a hook entry points to a context-mode hook script. */ export declare function isContextModeHook(entry: { command?: string; }, hookType: string): boolean; /** * Build the hook command string for a given hook type. */ export declare function buildHookCommand(hookType: string, pluginRoot?: string): string;