/** * Interface that contains configuration for RESTful API client used internally by SDK. */ export interface PowerAuthClientConfigurationType { /** * Defines whether unsecured connection is allowed. If not provided, then `false` is applied. */ readonly enableUnsecureTraffic?: boolean; /** * Connection timeout in seconds. If not provided, then the connection timeout is set to 20 seconds. */ readonly connectionTimeout?: number; /** * Read timeout in seconds. Be aware that this parameter is ignored on Apple platforms. * If not provided, then the read timeout is set to 20 seconds. */ readonly readTimeout?: number; /** * Custom HTTP headers that will be added to each HTTP request produced by this library. */ readonly customHttpHeaders?: PowerAuthHttpHeader[] | null; /** * Basic HTTP Authentication that will be added to each HTTP request produced by this library. */ readonly basicHttpAuthentication?: PowerAuthBasicHttpAuthentication | null; } /** * Custom HTTP header data. */ export interface PowerAuthHttpHeader { /** Name of the HTTP header. */ name: string; /** Value of the HTTP header. */ value: string; } /** * Basic HTTP Authentication data. */ export interface PowerAuthBasicHttpAuthentication { /** Basic HTTP Authentication user name. */ username: string; /** Basic HTTP Authentication password. */ password: string; } /** * Class that is used to provide RESTful API client configuration. */ export declare class PowerAuthClientConfiguration implements PowerAuthClientConfigurationType { enableUnsecureTraffic: boolean; connectionTimeout: number; readTimeout: number; customHttpHeaders?: PowerAuthHttpHeader[] | null; basicHttpAuthentication?: PowerAuthBasicHttpAuthentication | null; constructor(); /** * @returns `PowerAuthClientConfiguration` with default values. */ static default(): PowerAuthClientConfigurationType; } /** * Function create a frozen object implementing `ClientConfigurationType` with all properties set. * @param input Optional application's configuration. If not provided, then the default values are set. * @returns Frozen `ClientConfigurationType` interface with all properties set. */ export declare function buildClientConfiguration(input?: PowerAuthClientConfigurationType | undefined): Required;