UNPKG

cyphertap

Version:

Nostr, Lightning and Ecash on a single Button component

25 lines (24 loc) 682 B
export declare enum InitStatus { IDLE = "idle", INITIALIZING = "initializing", INITIALIZED = "initialized", ERROR = "error" } export declare const appState: { status: InitStatus; error: string | null; isInitialized: boolean; }; /** * Main initialization function that sets up the entire app * This is the only function called from the layout * @param skipAuth Whether to skip authentication (for login pages) */ export declare function initializeApp(skipAuth?: boolean): Promise<{ initialized: boolean; }>; /** * Check if user is authenticated and app is initialized * Useful for route guards */ export declare function isAppReady(): boolean;