import type { PermissionState } from '@capacitor/core'; declare module '@capacitor/cli' { interface PluginsConfig { /** * These configuration values are available: */ Badge?: { /** * Configure whether the plugin should restore the counter after a reboot or app restart. * * Only available on Android and iOS. * * @default true * @example true */ persist?: boolean; /** * Configure whether the plugin should reset the counter after resuming the application. * * On **iOS**, this will also clear all notifications. * * Only available on Android and iOS. * * @default false * @example false */ autoClear?: boolean; }; } } export interface BadgePlugin { /** * Get the badge count. * The badge count won't be lost after a reboot or app restart. * * Default: `0`. */ get(): Promise; /** * Set the badge count. */ set(options: SetBadgeOptions): Promise; /** * Increase the badge count. */ increase(): Promise; /** * Decrease the badge count. */ decrease(): Promise; /** * Clear the badge count. * * On **iOS**, this will remove the badge and also clear all notifications. */ clear(): Promise; /** * Check if the badge count is supported. */ isSupported(): Promise; /** * Check permission to display badge. */ checkPermissions(): Promise; /** * Request permission to display badge. */ requestPermissions(): Promise; } export interface GetBadgeResult { count: number; } export interface SetBadgeOptions { /** * The badge count to set. * * On **iOS**, setting the count to `0` will remove the badge and also clear all notifications. */ count: number; } export interface IsSupportedResult { isSupported: boolean; } export interface PermissionStatus { /** * Permission state of displaying the badge. */ display: PermissionState; }