import type { KTMessageQueue } from "../message-queue/index.js"; import type { KafkaLogger } from "./kafka-broker.js"; import type { KTTopicBatchEvent } from "./topic-batch.js"; import type { KTTopicEvent } from "./topic.js"; export type KTRun = (payload: Payload[], ctx: Ctx, publisher: Pick, 'publishSingleMessage'>, kafkaTopicParams: { heartBeat: () => Promise; partition: number; lastOffset: string | undefined; resolveOffset?: (offset: string) => void; }) => Promise; export type KTHandler = { topic: KTTopicEvent | KTTopicBatchEvent; run: KTRun; }; export type CtxWithKafka = T & KafkaLogger; export declare const KTHandler: (params: KTHandler) => KTHandler;