/** What kind of message it is, which a shell may show with an icon. */ export type MessageBoxKind = "none" | "info" | "error" | "question" | "warning"; export type MessageBox = { kind: MessageBoxKind; /** The app's title for the box, which Electron shows on its window bar. */ title: string; /** The question or message. */ message: string; /** More text under it, or empty for none. */ detail: string; /** The buttons' labels, in the app's order. At least one. */ buttons: readonly string[]; /** The button Enter presses, or `undefined` for none. */ defaultButton: number | undefined; /** The button Escape presses, and closing the window answers. */ cancelButton: number; /** The checkbox's label, or `undefined` for no checkbox. */ checkbox: string | undefined; /** Whether the checkbox starts checked. */ checkboxChecked: boolean; }; /** * The box `messageBox`, a browser window's `messageBox`, reads as. Throws for * a box the engine should not have listed: it checks each one the app sends. */ export declare const messageBox: (messageBox: string) => MessageBox;