import { z } from "zod"; /** * The spec's `urgency` hint. A `critical` notification stays up until * dismissed, whatever its timeout. */ export declare const notificationUrgencySchema: z.ZodEnum<{ critical: "critical"; low: "low"; normal: "normal"; }>; export type NotificationUrgency = z.infer; /** * One button of a notification, or its reply field when `key` is * {@link INLINE_REPLY_NOTIFICATION_ACTION}. */ export type NotificationAction = { /** The key for `DomicileHost.invokeNotificationAction`. */ key: string; /** The button text, or the reply field's label. */ label: string; }; /** One notification. */ export type Notification = { /** * The id for `DomicileHost.dismissNotifications` and * `DomicileHost.invokeNotificationAction`. A replaced notification * keeps its id. */ id: number; /** The sender's self-reported name. May be empty. */ appName: string; /** A one-line summary. */ summary: string; /** Plain text, never markup. May be empty. */ body: string; /** * The notification's image or its app's icon, as a `data:` URL, or * `undefined` if neither exists. */ icon: string | undefined; urgency: NotificationUrgency; /** Its buttons. See {@link clickable} for a press on the body. */ actions: readonly NotificationAction[]; /** Whether pressing the body invokes the `"default"` action. */ clickable: boolean; /** * Requested display time in milliseconds: `0` means until dismissed, * `undefined` means the shell decides. */ timeoutMs: number | undefined; /** When it arrived or was last replaced, in milliseconds since the epoch. */ time: number; /** * The id of the browser window whose page sent it, as `browserWindows` * lists it, or `undefined` for anything else. */ browserWindow: string | undefined; }; /** The action key for a press on a {@link Notification.clickable} body. */ export declare const DEFAULT_NOTIFICATION_ACTION = "default"; /** * The action key for a reply field. Send what is typed with * `DomicileHost.replyToNotification`, not `invokeNotificationAction`. */ export declare const INLINE_REPLY_NOTIFICATION_ACTION = "inline-reply";