UNPKG

@platformatic/kafka

Version:

Modern and performant client for Apache Kafka

6 lines (5 loc) 584 B
import { type CallbackWithPromise } from '../../apis/callbacks.ts'; import { type SASLAuthenticationAPI, type SaslAuthenticateResponse } from '../../apis/security/sasl-authenticate-v2.ts'; import { type Connection } from '../../network/connection.ts'; export declare function authenticate(authenticateAPI: SASLAuthenticationAPI, connection: Connection, token: string, callback: CallbackWithPromise<SaslAuthenticateResponse>): void; export declare function authenticate(authenticateAPI: SASLAuthenticationAPI, connection: Connection, token: string): Promise<SaslAuthenticateResponse>;