import { type Channel, type TracingChannel } from 'node:diagnostics_channel'; import { type Base } from './clients/base/base.ts'; import { type ConnectionPool } from './network/connection-pool.ts'; import { type Connection } from './network/connection.ts'; export type ClientType = 'base' | 'producer' | 'consumer' | 'admin'; export interface CreationEvent { type: ClientType | 'connection' | 'connection-pool' | 'messages-stream' | 'producer-stream'; instance: InstanceType; } export type ConnectionDiagnosticEvent> = { connection: Connection; } & Attributes; export type ConnectionPoolDiagnosticEvent> = { connectionPool: ConnectionPool; } & Attributes; export type ClientDiagnosticEvent> = { client: InstanceType; } & Attributes; export type ChannelWithName = Channel & { name: string; }; export type TracingChannelWithName = TracingChannel & { name: string; }; export type DiagnosticContext = BaseContext & { operationId: bigint; result?: unknown; error?: unknown; }; export declare const channelsNamespace: "plt:kafka"; export declare function createDiagnosticContext(context: BaseContext): DiagnosticContext; export declare function notifyCreation(type: ClientType | 'connection' | 'connection-pool' | 'messages-stream' | 'producer-stream', instance: InstanceType): void; export declare function createChannel(name: string): ChannelWithName; export declare function createTracingChannel(name: string): TracingChannelWithName; export declare const instancesChannel: ChannelWithName; export declare const connectionsConnectsChannel: TracingChannelWithName>>; export declare const connectionsApiChannel: TracingChannelWithName>>; export declare const connectionsPoolGetsChannel: TracingChannelWithName>>; export declare const baseApisChannel: TracingChannelWithName, Record>>; export declare const baseMetadataChannel: TracingChannelWithName, Record>>; export declare const adminTopicsChannel: TracingChannelWithName, Record>>; export declare const adminGroupsChannel: TracingChannelWithName, Record>>; export declare const adminClientQuotasChannel: TracingChannelWithName, Record>>; export declare const adminLogDirsChannel: TracingChannelWithName, Record>>; export declare const adminConsumerGroupOffsetsChannel: TracingChannelWithName, Record>>; export declare const adminConfigsChannel: TracingChannelWithName, Record>>; export declare const adminAclsChannel: TracingChannelWithName, Record>>; export declare const adminOffsetsChannel: TracingChannelWithName, Record>>; export declare const producerInitIdempotentChannel: TracingChannelWithName, Record>>; export declare const producerSendsChannel: TracingChannelWithName, Record>>; export declare const producerTransactionsChannel: TracingChannelWithName, Record>>; export declare const consumerGroupChannel: TracingChannelWithName, Record>>; export declare const consumerHeartbeatChannel: TracingChannelWithName, Record>>; export declare const consumerReceivesChannel: TracingChannelWithName, Record>>; export declare const consumerFetchesChannel: TracingChannelWithName, Record>>; export declare const consumerConsumesChannel: TracingChannelWithName, Record>>; export declare const consumerCommitsChannel: TracingChannelWithName, Record>>; export declare const consumerOffsetsChannel: TracingChannelWithName, Record>>; export declare const consumerLagChannel: ChannelWithName, Record>>;