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 for Android and iOS. * * @default true * @example true */ persist?: boolean; /** * Configure whether the plugin should reset the counter after resuming the application. * * Only available for 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. */ 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 { count: number; } export interface IsSupportedResult { isSupported: boolean; } export interface PermissionStatus { /** * Permission state of displaying the badge. */ display: PermissionState; }