import { HookPlugin } from './plugin'; import type { HookContext, HookResult } from './types'; import type { YamlHookEntry, AgentConfig } from '../types'; export interface YamlHookConfig { hooks: YamlHookEntry[]; agents?: AgentConfig[]; } export declare function validateHooksSchema(hooks: unknown[]): { valid: YamlHookEntry[]; warnings: string[]; }; export declare class YamlHookPlugin extends HookPlugin { readonly name = "@crewx/yaml-hook-plugin"; readonly version = "0.1.0"; readonly capabilities: { required: readonly ["inject"]; }; private readonly hooks; private readonly agentMap; constructor(config: YamlHookConfig); run(ctx: HookContext): Promise; private appendHookLog; private matchEntryLevel; private matchRuleLevel; private hasFired; private markFired; firedFilePath(sessionId: string): string; }