export interface ToastPlugin { /** * Shows a Toast on the screen * * @since 1.0.0 */ show(options: ShowOptions): Promise; } export interface ShowOptions { /** * Text to display on the Toast * * @since 1.0.0 */ text: string; /** * Duration of the Toast, either 'short' (2000ms) or 'long' (3500ms) * * @default 'short' * @since 1.0.0 */ duration?: 'short' | 'long'; /** * Position of the Toast * * @default 'bottom' * @since 1.0.0 */ position?: 'top' | 'center' | 'bottom'; } /** * @deprecated Use `ToastShowOptions`. * @since 1.0.0 */ export type ToastShowOptions = ShowOptions;