import type { IoMessage, IoRequest } from './io-message'; export interface IIoHost { /** * Notifies the host of a message. * The caller waits until the notification completes. */ notify(msg: IoMessage): Promise; /** * Notifies the host of a message that requires a response. * * If the host does not return a response the suggested * default response from the input message will be used. */ requestResponse(msg: IoRequest): Promise; } export interface IActionAwareIoHost { /** * Notifies the host of a message. * The caller waits until the notification completes. */ notify(msg: Omit, 'action'>): Promise; /** * Notifies the host of a message that requires a response. * * If the host does not return a response the suggested * default response from the input message will be used. */ requestResponse(msg: Omit, 'action'>): Promise; } //# sourceMappingURL=io-host.d.ts.map