/** * @license * Copyright 2025 Vybestack LLC * SPDX-License-Identifier: Apache-2.0 */ /** * @plan:PLAN-20260216-HOOKSYSTEMREWRITE.P19,P20 * @requirement:HOOK-134 * * Test utility for creating minimal Config objects with hooks configured. * Used by behavioral tests to verify hook integration actually works. */ import type { Config } from '../../config/config.js'; /** * Options for creating a test config with a hook */ export interface TestHookOptions { /** * The hook event type */ event: 'BeforeTool' | 'AfterTool' | 'BeforeModel' | 'AfterModel' | 'BeforeToolSelection'; /** * Shell command to execute */ command: string; /** * Optional matcher pattern for the hook */ matcher?: string; /** * Optional timeout in milliseconds (default: 5000) */ timeout?: number; } /** * Creates a minimal Config object with a single hook configured for testing. * * This utility builds a Config with just enough functionality to: * 1. Enable hooks * 2. Register a single hook for the specified event * 3. Provide session/working directory context * 4. Lazily initialize a HookSystem singleton * * @param options - Hook configuration options * @returns A Config object suitable for testing hook triggers */ export declare function createTestConfigWithHook(options: TestHookOptions): Config; /** * Creates a Config with hooks disabled for testing disabled-hooks path */ export declare function createTestConfigWithHooksDisabled(): Config;