import { Producer } from 'kafkajs';
import { DynamicFieldResponse, Features } from '@segment/actions-core';
import type { Settings } from './generated-types';
import type { Payload } from './send/generated-types';
import { CachedProducer } from './types';
import { Logger, StatsContext } from '@segment/actions-core/destination-kit';
export declare const producersByConfig: Record<string, CachedProducer>;
export declare const serializeKafkaConfig: (settings: Settings) => string;
export declare const getTopics: (settings: Settings) => Promise<DynamicFieldResponse>;
export declare const validate: (settings: Settings) => void;
export declare const getOrCreateProducer: (settings: Settings, statsContext: StatsContext | undefined) => Promise<Producer>;
export declare function isValidHostPort(brokerStr: string): boolean;
export declare const sendData: (settings: Settings, payload: Payload[], features: Features | undefined, statsContext: StatsContext | undefined, logger: Logger | undefined) => Promise<void>;
