import { RequestOptions, HttpResponse } from "@talentsoft-opensource/integration-widget-contract";

/**
 * This objects allows the viewer to simulate the talentsoft behavior. You can either mock 
 */
export interface HostMock {
    proxyMode?: boolean,
    secretKey?: string,
    login?: string,
    configuration?: {[key: string]: string},
    requestExternalResource?: (options: RequestOptions) => Promise<HttpResponse>,
    loadData?: () => Promise<object[]>,
    getAutoConnectUrl?: (url: string) => string,
}