import { IWorkbenchLayoutService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service"; /** A single action button rendered in the dialog sheet. */ export interface IMobileDialogSheetButton { /** Display label (already stripped of mnemonics). */ readonly label: string; /** When true the button is styled as the secondary / safe action. */ readonly isCancel: boolean; } export interface IMobileDialogSheetOptions { /** Sheet header title (single line). Usually a short category label. */ readonly title: string; /** Primary message describing the action (wraps). */ readonly message: string; /** Optional muted detail line beneath the message (wraps). */ readonly detail?: string; /** Action buttons, in the dialog's canonical order (index is returned). */ readonly buttons: readonly IMobileDialogSheetButton[]; /** Index of the button to focus on open (typically the safe action). */ readonly defaultButtonIndex: number; /** Optional checkbox row (e.g. "Do not ask me again"). */ readonly checkbox?: { readonly label: string; readonly checked?: boolean; }; } export interface IMobileDialogSheetResult { /** Index of the chosen button, or the cancel index when dismissed. */ readonly button: number; readonly checkboxChecked?: boolean; } /** * Render a generic confirmation / prompt as a native mobile bottom sheet. * * Maps the workbench dialog model (message + detail + ordered buttons + * optional checkbox) onto {@link showMobileContentSheet}: full-width stacked * buttons with 44px tap targets, the safe action styled secondary. Tapping a * button resolves with its index; dismissing the sheet (backdrop / Escape) * resolves with the cancel index (or -1 when the dialog has no cancel). * * Focus is moved into the sheet on open (defaulting to the safe action) and * restored to the previously focused element on close, mirroring the desktop * dialog's behavior. */ export declare function showMobileDialogSheet(layoutService: IWorkbenchLayoutService, options: IMobileDialogSheetOptions): Promise;