import { type CallbackWithPromise } from '../../apis/callbacks.ts'; import { type SASLAuthenticationAPI, type SaslAuthenticateResponse } from '../../apis/security/sasl-authenticate-v2.ts'; import { type Connection, type CredentialProvider } from '../../network/connection.ts'; export declare function jwtValidateAuthenticationBytes(authBytes: Buffer, callback: CallbackWithPromise): void; export declare function authenticate(authenticateAPI: SASLAuthenticationAPI, connection: Connection, tokenOrProvider: string | CredentialProvider, extensions: Record | CredentialProvider>, callback: CallbackWithPromise): void; export declare function authenticate(authenticateAPI: SASLAuthenticationAPI, connection: Connection, tokenOrProvider: string | CredentialProvider, extensions: Record | CredentialProvider>): Promise;