import { KeyPair } from '@inrupt/solid-client-authn-core'; import type { Logger } from '../logger'; export type SessionInfo = { fetch: typeof fetch; webId?: string; }; export type OIDCConfig = { authorization_endpoint: string; claims_parameter_supported: true; claims_supported: string[]; code_challenge_methods_supported: string[]; end_session_endpoint: string; grant_types_supported: string[]; id_token_signing_alg_values_supported: string[]; issuer: string; jwks_uri: string; registration_endpoint: string; response_modes_supported: string[]; response_types_supported: string[]; scopes_supported: string[]; subject_types_supported: string[]; token_endpoint_auth_methods_supporte: string[]; token_endpoint_auth_signing_alg_values_supported: string[]; token_endpoint: string; request_object_signing_alg_values_supported: string[]; request_parameter_supported: boolean; request_uri_parameter_supported: boolean; require_request_uri_registration: boolean; userinfo_endpoint: string; userinfo_signing_alg_values_supported: string[]; introspection_endpoint: string; introspection_endpoint_auth_methods_supported: string[]; introspection_endpoint_auth_signing_alg_values_supported: string[]; dpop_signing_alg_values_supported: string[]; revocation_endpoint: string; revocation_endpoint_auth_methods_supported: string[]; revocation_endpoint_auth_signing_alg_values_supported: string[]; claim_types_supported: string[]; solid_oidc_supported: string; }; export declare function getOIDCConfig(idp: string): Promise; export declare function ensureDirectoryExistence(filePath: string): true | undefined; type ISessionInformation = { clientId?: string; idTokenSignedResponseAlg?: string; clientSecret?: string; issuer?: string; redirectUrl?: string; dpop?: string; refreshToken?: string; webId?: string; isLoggedIn?: string; publicKey?: string; privateKey?: string; sessionId?: string; }; export declare function getSessionInfoFromStorage(storage: StorageHandler): Promise; export declare class StorageHandler { map: Map; constructor(); get: (key: string) => Promise; set: (key: string, value: string) => Promise; delete: (key: string) => Promise; writeToFile(filePath: string): Promise; loadFromFile(fileName: string): void; clear(): void; } type SessionTokenInfo = { accessToken: string; expirationDate: Date; dpopKey: KeyPair; webId?: string; idp?: string; }; export declare function storeSessionTokenInfo(accessToken: string, dpopKey: KeyPair, expirationDate: Date, webId?: string, idp?: string): Promise; export declare function readSessionTokenInfo(): Promise; type IdToken = { azp: string; sub: string; webid: string; at_hash: string; aud: string; exp: number; iat: number; iss: string; }; export declare function decodeIdToken(idToken: string): IdToken; export declare function writeErrorString(explanation: string, e: any, options?: { logger?: Logger; }): void; export {}; //# sourceMappingURL=authenticationUtils.d.ts.map