import { Gateway } from "./Gateway"; export interface ConfigurationParams { /** * The Trolley access key */ key: string; /** * The Trolley secret key */ secret: string; /** * Optional. The base URL to use to connect to the API gateway. Useful while running from source. */ apiBase?: string; } export declare class Configuration { /** * @hidden */ static apiKeyDefault: string; /** * @hidden */ static apiSecretDefault: string; /** * @hidden */ static apiBaseDefault: string; apiKey: string; apiSecret: string; apiBase: string; /** * Internal constructor * @hidden */ constructor(config?: ConfigurationParams); /** * Globally set the public API key to connect to Trolley * @param key Your Trolley API public key */ static setApiKey(key: string): void; /** * Globally set the secret API key to connect to Trolley * @param secret Your Trolley API secret Key */ static setApiSecret(secret: string): void; /** * Function to construct a gateway for this configuration * @hidden */ static gateway(): Gateway; /** * Set the base URL to use to connect to the API gateway * @param baseUrl url root * @hidden */ static setApiBase(baseUrl: string): void; }