import type { DomicileHost } from "../domicile-host"; import type { Notification } from "../notification"; import type { On } from "./subscribe"; export type NotificationsListeners = { change: () => void; }; export type Notifications = { /** * Every uncleared notification, oldest first; `undefined` until the * compositor says. Throws on an urgency the spec does not have. */ readonly list: readonly Notification[] | undefined; /** Clear `ids`; each application hears it was dismissed. */ dismiss: (ids: readonly number[]) => void; /** Press `action` on `id`: `"default"` for the notification itself. */ invoke: (id: number, action: string) => void; /** Send `text` from `id`'s reply field. */ reply: (id: number, text: string) => void; on: On; }; export type NotificationsHost = Pick; export declare const notifications: (host: NotificationsHost) => Notifications;