import type { Consumer } from 'kafkajs'; import * as z from 'zod'; import type { Api } from '../api'; declare const InputMessage: z.ZodUnion; payload: z.ZodObject<{ kafkaMessageOffset: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ topic: z.ZodLiteral<"force-reset">; }, z.core.$strip>]>; export declare const SourceKafka: (api: Api) => { new (config: any): { consumer: Promise; /** Used to orchestrate consumer retry */ isDestroying: boolean; kafkaPendingProcessing: { messageOffset: string; resolve: VoidFunction; reject: (err: Error) => void; } | null; runConsumerWithRetry({ topic }: { topic: string; }): void; runConsumer({ topic }: { topic: string; }): Promise; setStatus(status: "connected" | "waiting" | "connecting"): void; /** * Input is responsible for resolving promise that kafka consumer is waiting for */ onInput(message: z.infer): void; onDestroy(): Promise; api: Api; nodeConfig: unknown; messageZod: z.ZodUnion; payload: z.ZodObject<{ kafkaMessageOffset: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ topic: z.ZodLiteral<"force-reset">; }, z.core.$strip>]>; getBaseUrls(): Promise>; getNodeEnvConfig(): import("../node").NodeEnvConfig; sendBuilder(inputMessage: import("../types").NodeMessage): import("../node").SendBuilder; handleMaybePromise(maybePromiseCb: () => (T | Promise), done: (err?: Error) => void): void; }; }; export {};