UNPKG

magically-sdk

Version:

Official SDK for Magically - Build mobile apps with AI

25 lines (24 loc) 768 B
/** * Platform detection and abstraction layer * Provides environment-specific implementations */ interface StorageInterface { getItem: (key: string) => Promise<string | null>; setItem: (key: string, value: string) => Promise<void>; removeItem: (key: string) => Promise<void>; } interface WebBrowserInterface { openBrowserAsync: (url: string) => Promise<any>; openAuthSessionAsync?: (url: string, redirectUri: string) => Promise<any>; maybeCompleteAuthSession: () => { type: string; }; } interface PlatformInterface { OS: string; select: (obj: any) => any; } export declare let AsyncStorage: StorageInterface; export declare let WebBrowser: WebBrowserInterface; export declare let Platform: PlatformInterface; export {};