import type { Id, IDisposable, Emitter } from "@codesandbox/pitcher-common"; import type { notification as notificationProtocol } from "@codesandbox/pitcher-protocol"; export interface INotification extends IDisposable { readonly id: Id; readonly type: notificationProtocol.NotificationType; readonly message: string; readonly actions: notificationProtocol.Action[] | undefined; onNotificationResponse: Emitter["event"]; onNotificationDismiss: Emitter["event"]; /** * Called when Pitcher wants to dismiss the notification, this should not be used * by clients that implement the pitcher-client. To listen to dismiss events, use * the `onNotificationDismiss` event instead. */ dismiss(): void; respond(label: string | null): void; } export interface INotificationClient extends IDisposable { onNotification: Emitter["event"]; notifications: Record; onDismissNotification: Emitter["event"]; } //# sourceMappingURL=INotificationsClient.d.ts.map