import { ISessionInfo, ISessionOptions, Session } from '@inrupt/solid-client-authn-browser'; import { SolidService, SolidDataServiceOptions, SolidSession } from '../common/SolidService'; import IssuerConfigFetcher from './IssuerConfigFetcher'; export declare class SolidClientService extends SolidService { protected options: SolidClientServiceOptions; protected issuerConfigFetcher: IssuerConfigFetcher; constructor(options?: SolidClientServiceOptions); get session(): SolidSession; protected set session(value: SolidSession); private _initialize; logout(session: SolidSession): Promise; /** * Login a Solid browser user * @param {string} oidcIssuer OpenID Issuer * @param {boolean} remember Remember the session * @returns {Promise} Session promise */ login(oidcIssuer?: string, remember?: boolean): Promise; handleLogin(): Promise; protected handleRedirect(session?: SolidSession): Promise; protected createSession(options: Partial): Session; } export interface SolidClientServiceOptions extends SolidDataServiceOptions { /** * Auto login is not possible in browser */ autoLogin?: false; /** * Automatically restore a previous session. * @default false */ restorePreviousSession?: boolean; /** * Handle redirect URL. In a mobile app such as CapacitorJS you can use `@capacitor/browser` to open the URL. * @param redirectUrl * @param callback * @returns */ handleRedirect?: (redirectUrl: string, callback?: (error?: Error) => void) => void; } //# sourceMappingURL=SolidClientService.d.ts.map