import { AuthenticationModel } from "./AuthenticationModel"; /** * Type that describes an object that maps a key to a value. */ export declare type DataProviderHeaders = { [header: string]: string; }; /** * Data Model to describe external service data providers */ export declare class DataProviderModel { readonly id: string; readonly authentication: AuthenticationModel; readonly headers: DataProviderHeaders; readonly timeoutInMilliseconds: number; /** * Default timeout for external calls */ static readonly defaultTimeoutInMilliseconds = 500; /** * * @param id the id of the provider which must be a url * @param authentication the authentication scheme of the provider * @param headers headers to send in the request * @param timeoutInMilliseconds the timeout for the external call */ constructor(id: string, authentication: AuthenticationModel, headers?: DataProviderHeaders, timeoutInMilliseconds?: number); /** * Populate an instance of DataProviderModel from any instance * @param input object instance to populate from * @param authentication AuthenticationModel instance from the parent object */ static fromJSON(input: any, authentication?: AuthenticationModel): DataProviderModel; }