import type { Id } from "@codesandbox/pitcher-common"; import { Disposable } from "@codesandbox/pitcher-common"; import type { notification as notificationProtocol } from "@codesandbox/pitcher-protocol"; import type { INotification, INotificationClient } from "../../interface/clients/INotificationsClient"; import type { PitcherMessageHandler } from "../PitcherMessageHandler"; export declare class NotificationClient extends Disposable implements INotificationClient { private onNotificationEmitter; onNotification: import("@codesandbox/pitcher-common").Event; notifications: Record; private onDismissNotificationEmitter; onDismissNotification: import("@codesandbox/pitcher-common").Event<{ notificationId: Id; }>; constructor(messageHandler: PitcherMessageHandler); } export declare class Notification extends Disposable implements INotification { readonly id: Id; readonly type: notificationProtocol.NotificationType; readonly message: string; readonly actions: notificationProtocol.Action[] | undefined; private onNotificationResponseEmitter; onNotificationResponse: import("@codesandbox/pitcher-common").Event; private onNotificationDismissEmitter; onNotificationDismiss: import("@codesandbox/pitcher-common").Event; constructor(notification: notificationProtocol.NotificationNotify["params"]); /** * 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; } //# sourceMappingURL=NotificationClient.d.ts.map