//#region src/hooks/internal-hook-types.d.ts type InternalHookEventType = "command" | "session" | "agent" | "gateway" | "message"; interface InternalHookEvent { /** The type of event (command, session, agent, gateway, etc.) */ type: InternalHookEventType; /** The specific action within the type (e.g., 'new', 'reset', 'stop') */ action: string; /** The session key this event relates to */ sessionKey: string; /** Additional context specific to the event */ context: Record; /** Timestamp when the event occurred */ timestamp: Date; /** Messages to send back to the user (hooks can push to this array) */ messages: string[]; } type InternalHookHandler = (event: InternalHookEvent) => Promise | void; //#endregion export { InternalHookEventType as n, InternalHookHandler as r, InternalHookEvent as t };