import FileSystem from './fs'; export declare type Scenario = { notAuthenticated?: true; authSucceeded?: true; authCancelled?: true; continuum?: true; }; export declare type FulfilledScenario = { scenario: Scenario; state: State; }; export declare type State = NotAuthenticated | AuthSucceeded | AuthCancelled | Continuum; export declare type NotAuthenticated = { authenticated: false; }; export declare type AuthSucceeded = { authenticated: true; newUser: boolean; throughLobby: true; username: string; fs?: FileSystem; }; export declare type AuthCancelled = { authenticated: false; cancellationReason: string; throughLobby: true; }; export declare type Continuum = { authenticated: true; newUser: false; throughLobby: false; username: string; fs?: FileSystem; }; /** * Check if we're authenticated, process any lobby query-parameters present in the URL, * and initiate the user's file system if authenticated (can be disabled). * * See `loadFileSystem` if you want to load the user's file system yourself. * NOTE: Only works on the main/ui thread, as it uses `window.location`. */ export declare function initialise(options: { autoRemoveUrlParams?: boolean; loadFileSystem?: boolean; }): Promise; export * from './auth'; export * from './filesystem'; export declare const fs: typeof FileSystem; export * as dataRoot from './data-root'; export * as did from './did'; export * as lobby from './lobby'; export * as setup from './setup'; export * as ucan from './ucan'; export * as dns from './dns'; export * as ipfs from './ipfs'; export * as keystore from './keystore'; export * as apps from './apps';