UNPKG

kafka-ts

Version:

**KafkaTS** is a Apache Kafka client library for Node.js. It provides both a low-level API for communicating directly with the Apache Kafka cluster and high-level APIs for publishing and subscribing to Kafka topics.

17 lines (16 loc) 516 B
import { SASLProvider } from '../broker'; export declare const oAuthBearer: (getToken: () => Promise<{ access_token: string; }>) => SASLProvider; export declare const oAuthAuthenticator: ({ endpoint, clientId, clientSecret, refreshThresholdSeconds, }: { endpoint: string; clientId: string; clientSecret: string; refreshThresholdSeconds?: number; }) => () => Promise<TokenResponse>; type TokenResponse = { access_token: string; refresh_token: string; expires_in: number; }; export {};