/** * Hook Event Payload Validators * * Type-predicate validators for each hook event family. * Validation runs at mediated ingress (MessageBus path) before planning. * * @plan PLAN-20250218-HOOKSYSTEM.P09 * @plan PLAN-20250218-HOOKSYSTEM.P11 * @requirement DELTA-HPAY-001, DELTA-HPAY-005 */ import type { BeforeToolInput, AfterToolInput, BeforeAgentInput, AfterAgentInput, BeforeModelInput, AfterModelInput, BeforeToolSelectionInput, NotificationInput } from './types.js'; /** * Type guard: checks if value is a non-null, non-array object. * * @plan PLAN-20250218-HOOKSYSTEM.P11 * @requirement DELTA-HPAY-005 */ export declare function isObject(value: unknown): value is Record; /** * Type guard: checks if value is a non-empty string. * * @plan PLAN-20250218-HOOKSYSTEM.P11 * @requirement DELTA-HPAY-005 */ export declare function isNonEmptyString(value: unknown): value is string; /** * Validates BeforeTool event input. * Required fields: tool_name (non-empty string), tool_input (object) * * @plan PLAN-20250218-HOOKSYSTEM.P11 * @requirement DELTA-HPAY-001, DELTA-HPAY-005 */ export declare function validateBeforeToolInput(input: unknown): input is BeforeToolInput; /** * Validates AfterTool event input. * Required fields: tool_name (non-empty string), tool_input (object), tool_response (object) * * @plan PLAN-20250218-HOOKSYSTEM.P11 * @requirement DELTA-HPAY-001, DELTA-HPAY-005 */ export declare function validateAfterToolInput(input: unknown): input is AfterToolInput; /** * Validates BeforeAgent event input. * Required fields: prompt (string) * * @plan PLAN-20250218-HOOKSYSTEM.P11 * @requirement DELTA-HPAY-001, DELTA-HPAY-005 */ export declare function validateBeforeAgentInput(input: unknown): input is BeforeAgentInput; /** * Validates AfterAgent event input. * Required fields: prompt (string), prompt_response (string), stop_hook_active (boolean) * * @plan PLAN-20250218-HOOKSYSTEM.P11 * @requirement DELTA-HPAY-001, DELTA-HPAY-005 */ export declare function validateAfterAgentInput(input: unknown): input is AfterAgentInput; /** * Validates BeforeModel event input. * Required fields: llm_request (object) * * @plan PLAN-20250218-HOOKSYSTEM.P11 * @requirement DELTA-HPAY-001, DELTA-HPAY-005 */ export declare function validateBeforeModelInput(input: unknown): input is BeforeModelInput; /** * Validates AfterModel event input. * Required fields: llm_request (object), llm_response (object) * * @plan PLAN-20250218-HOOKSYSTEM.P11 * @requirement DELTA-HPAY-001, DELTA-HPAY-005 */ export declare function validateAfterModelInput(input: unknown): input is AfterModelInput; /** * Validates BeforeToolSelection event input. * Required fields: llm_request (object) * * @plan PLAN-20250218-HOOKSYSTEM.P11 * @requirement DELTA-HPAY-001, DELTA-HPAY-005 */ export declare function validateBeforeToolSelectionInput(input: unknown): input is BeforeToolSelectionInput; /** * Validates Notification event input. * Required fields: notification_type (enum), message (non-empty string), details (object) * * @plan PLAN-20250218-HOOKSYSTEM.P11 * @requirement DELTA-HPAY-001, DELTA-HPAY-005 */ export declare function validateNotificationInput(input: unknown): input is NotificationInput;