import type { Handlers, ResolvedRateLimits } from "./server-types.js"; import type { Subscriptions } from "./subscriptions.js"; import type { RateLimiter } from "./rate-limits.js"; import type { IndicatorStore } from "./indicators-store.js"; import type { Cache } from "./cache.js"; import type { Conversation } from "../shared/shared-types.js"; export type ServerContext = { handlers: Handlers; subscriptions: Subscriptions; rateLimiter: RateLimiter; rateLimits: ResolvedRateLimits; activityCache: Cache; conversationCache: Cache; indicators: IndicatorStore; }; export type AfterHook = () => void | Promise; export type ServiceResult = { result: T; hooks: AfterHook[]; }; export declare function fireHook(handlers: Handlers, name: K, ...args: Parameters>): void; export declare function newId(): string; export declare function now(): Date; //# sourceMappingURL=context.d.ts.map