import type { SessionTracker } from "../../features/session-tracker/index.js"; /** * Dependencies for the session tracker consumer (AC-17). * * Injected at composition time from plugin.ts: * - sessionTracker: SessionTracker instance * - logWarn: optional logging callback (wraps client.app?.log?.()) */ export interface SessionTrackerConsumerDeps { sessionTracker: Pick; logWarn?: (message: string, error: unknown) => void; } /** * Extracted pass-through consumer for session-tracker event routing (AC-17). * * Extracts eventType and sessionID from hook events and routes them to * sessionTracker.handleSessionEvent() for persistence. Best-effort — * errors are caught and logged, never thrown to the runtime. * * @param deps - Typed dependencies injected from plugin.ts at composition time. * @returns An async function that receives { event } and routes to sessionTracker. */ export declare function createSessionTrackerConsumer(deps: SessionTrackerConsumerDeps): (input: { event?: unknown; }) => Promise; //# sourceMappingURL=session-tracker-consumer.d.ts.map