export interface ShowActionsOptions { /** * The title of the Action Sheet. * * @since 1.0.0 */ title?: string; /** * A message to show under the title. * * This option is only supported on iOS. * * @since 1.0.0 */ message?: string; /** * Options the user can choose from. * * @since 1.0.0 */ options: ActionSheetButton[]; /** * If true, the Action Sheet is canceled when clicked outside; If false, it is not. * * On iOS, it's not available if there is a button with ActionSheetButtonStyle.Cancel, or on iOS 26+. * In those cases, the Action Sheet is always cancelable by clicking outside of it. * * On Web, requires having @ionic/pwa-elements version 3.4.0 or higher. * * @default false * @since 8.1.0 */ cancelable?: boolean; } export declare enum ActionSheetButtonStyle { /** * Default style of the option. * * @since 1.0.0 */ Default = "DEFAULT", /** * Style to use on destructive options. * * @since 1.0.0 */ Destructive = "DESTRUCTIVE", /** * Style to use on the option that cancels the Action Sheet. * If used, should be on the latest available option. * On iOS 26+ is not displayed, the Action Sheet is cancelable by tapping outside. * * @since 1.0.0 */ Cancel = "CANCEL" } export interface ActionSheetButton { /** * The title of the option * * @since 1.0.0 */ title: string; /** * The style of the option * * This option is only supported on iOS. * * @since 1.0.0 */ style?: ActionSheetButtonStyle; /** * Icon for the option (ionicon naming convention) * * This option is only supported on Web. * * @since 1.0.0 */ icon?: string; } export interface ShowActionsResult { /** * The index of the clicked option (Zero-based), or -1 if the Action Sheet was canceled. * * On iOS, if there is a button with ActionSheetButtonStyle.Cancel, and user clicks outside the Action Sheet, the index of the Cancel button is returned. * * @since 1.0.0 */ index: number; /** * True if the Action Sheet was canceled by user; False otherwise. * * On Web, requires having @ionic/pwa-elements version 3.4.0 or higher. * * @since 8.1.0 */ canceled: boolean; } export interface ActionSheetPlugin { /** * Show an Action Sheet style modal with various options for the user * to select. * * @since 1.0.0 */ showActions(options: ShowActionsOptions): Promise; } /** * @deprecated Use `ShowActionsOptions`. * @since 1.0.0 */ export type ActionSheetOptions = ShowActionsOptions; /** * @deprecated Use `ShowActionsResult`. * @since 1.0.0 */ export type ActionSheetResult = ShowActionsResult; /** * @deprecated Use `ActionSheetButton`. * @since 1.0.0 */ export type ActionSheetOption = ActionSheetButton; /** * @deprecated Use `ActionSheetButtonStyle`. * @since 1.0.0 */ export declare const ActionSheetOptionStyle: typeof ActionSheetButtonStyle;