import { AuthenticationParameters } from "../AuthenticationParameters"; import { StringDict } from "../MsalTypes"; /** * @hidden */ export declare class RequestUtils { /** * @ignore * * @param request * @param isLoginCall * @param requestType * @param redirectCallbacksSet * @param cacheStorage * @param clientId * * validates all request parameters and generates a consumable request object */ static validateRequest(request: AuthenticationParameters, isLoginCall: boolean, clientId: string, requestType?: string, redirectCallbacksSet?: boolean): AuthenticationParameters; /** * @ignore * * Utility to test if valid prompt value is passed in the request * @param request */ static validatePromptParameter(prompt: string): void; /** * @ignore * * Removes unnecessary or duplicate query parameters from extraQueryParameters * @param request */ static validateEQParameters(extraQueryParameters: StringDict, claimsRequest: string): StringDict; /** * @ignore * * Validates the claims passed in request is a JSON * TODO: More validation will be added when the server team tells us how they have actually implemented claims * @param claimsRequest */ static validateClaimsRequest(claimsRequest: string): void; /** * @ignore * * generate unique state per request * @param request */ static validateAndGenerateState(state: string): string; /** * @ignore * * validate correlationId and generate if not valid or not set by the user * @param correlationId */ static validateAndGenerateCorrelationId(correlationId: string): string; }