import type { HookEntry } from '../store/hook-registry.js'; export type HookSpec = { id: string; command: string; args?: string[]; timeoutMs: number; result?: 'hook-result' | 'stdout-as-prompt' | 'none'; }; export type HookEmitResult = { id: string; result?: unknown; error?: string; stderr?: string; }; export declare function initHookBus(opts: { entries: readonly HookEntry[]; hooksDir?: string; }): void; export declare function emitCortexEvent(event: `cortex:${string}`, payload: Record, opts?: { scopedHooks?: HookSpec[]; env?: NodeJS.ProcessEnv; defaultTimeoutMs?: number; }): Promise;