| 12 | export * from './lib/properties'; |
| 13 | |
| 14 | export interface Connection extends events.EventEmitter { |
| 15 | close(callback?: (err: Error) => void): void; |
| 16 | createChannel(callback: (err: Error, channel: Channel) => void): Channel; |
| 17 | createChannel(options: ChannelOptions, callback: (err: Error, channel: Channel) => void): Channel; |
| 18 | createConfirmChannel(callback: (err: Error, confirmChannel: ConfirmChannel) => void): ConfirmChannel; |
| 19 | createConfirmChannel(options: ChannelOptions, callback: (err: Error, confirmChannel: ConfirmChannel) => void): ConfirmChannel; |
| 20 | readonly connection: { |
| 21 | readonly serverProperties: ServerProperties; |
| 22 | }; |
| 23 | updateSecret(newSecret: Buffer, reason: string, callback?: (err: Error) => void): void; |
| 24 | |
| 25 | on(event: 'close', listener: (err?: Error) => void): this; |
| 26 | on(event: 'error', listener: (err: Error) => void): this; |
| 27 | on(event: 'blocked', listener: (reason: string) => void): this; |
| 28 | on(event: 'unblocked', listener: () => void): this; |
| 29 | on(event: 'update-secret-ok', listener: () => void): this; |
| 30 | on(event: 'handler-error', listener: (err: Error, eventName: string) => void): this; |
| 31 | on(event: string, listener: (...args: any[]) => void): this; |
| 32 | } |
| 33 | |
| 34 | export interface Channel extends events.EventEmitter { |
| 35 | readonly connection: Connection; |
no outgoing calls
no test coverage detected
searching dependent graphs…