import { ConfigOptions } from '../config/interfaces'; import { default as FRStep } from '../fr-auth/fr-step'; export interface Advices { AuthenticateToServiceConditionAdvice?: string[]; TransactionConditionAdvice?: string[]; } export declare type HandleStep = (step: FRStep) => Promise; /** * Options to use when making an HTTP call. */ export interface HttpClientRequestOptions { bypassAuthentication?: boolean; authorization?: { config?: ConfigOptions; handleStep: HandleStep; idToken?: string; txnID?: string; }; init: RequestInit; requiresNewToken?: RequiresNewTokenFn; timeout: number; url: string; } /** * A function that determines whether a new token is required based on a HTTP response. */ export type RequiresNewTokenFn = (res: Response) => boolean; export interface AuthorizationJSON { resource: string; actions: { [key: string]: string; }; attributes: { [key: string]: string; }; advices: Advices | null; ttl: number; } //# sourceMappingURL=interfaces.d.ts.map