import type { DidExchangeState } from './models' import type { ConnectionRecord } from './repository/ConnectionRecord' import type { BaseEvent } from '../../agent/Events' export enum ConnectionEventTypes { ConnectionStateChanged = 'ConnectionStateChanged', } export interface ConnectionStateChangedEvent extends BaseEvent { type: typeof ConnectionEventTypes.ConnectionStateChanged payload: { connectionRecord: ConnectionRecord previousState: DidExchangeState | null } }