import { AppleIAPProductId } from './../Subscription/AppleIAPProductId' import { DeviceInterface } from './DeviceInterface' import { Environment, Platform, RawKeychainValue } from '@standardnotes/models' import { AppleIAPReceipt } from '../Subscription/AppleIAPReceipt' export interface MobileDeviceInterface extends DeviceInterface { environment: Environment.Mobile platform: Platform.Ios | Platform.Android getRawKeychainValue(): Promise getDeviceBiometricsAvailability(): Promise setAndroidScreenshotPrivacy(enable: boolean): void authenticateWithBiometrics(): Promise hideMobileInterfaceFromScreenshots(): void stopHidingMobileInterfaceFromScreenshots(): void consoleLog(...args: any[]): void handleThemeSchemeChange(isDark: boolean, bgColor: string): void shareBase64AsFile(base64: string, filename: string): Promise downloadBase64AsFile(base64: string, filename: string, saveInTempLocation?: boolean): Promise previewFile(base64: string, filename: string): Promise exitApp(confirm?: boolean): void addComponentUrl(componentUuid: string, componentUrl: string): void removeComponentUrl(componentUuid: string): void isUrlComponentUrl(url: string): boolean getAppState(): Promise<'active' | 'background' | 'inactive' | 'unknown' | 'extension'> getColorScheme(): Promise<'light' | 'dark' | null | undefined> purchaseSubscriptionIAP(plan: AppleIAPProductId): Promise }