UNPKG

@tyrads.com/tyrads-sdk-iframe

Version:

Official TyrAds SDK for NodeJS

21 lines (20 loc) 740 B
export interface Config { readonly iFrameBaseUrl: string; readonly sdkApiBaseUrl: string; readonly sdkApiVersion: string; readonly sdkPlatform: string; readonly apiKey: string; readonly apiSecret: string; readonly language: string; } /** * Resolves the default iframe base URL for the given API version. * v3 and earlier are served from the root host (sdk.tyrads.com); * v4 and later each get a dedicated v{major}.sdk.tyrads.com subdomain. * Unrecognized version strings fall back to the SDK's current default major. */ export declare function resolveIframeBaseUrl(apiVersion: string): string; export declare const init: (config: Partial<Config> & { apiKey: string; apiSecret: string; }) => Config;