/** * TemplateJS class for manipulating Taboola's template JavaScript URL and parameters. * This class provides methods to configure various aspects of the Taboola content delivery, * including cache control, campaign targeting, geo targeting, and custom parameters. */ declare class TemplateJS { tblClassicPageId: string; tblClassicUnit: string; /** * Creates a new TemplateJS instance * @param tblClassicPageId - The ID of the Taboola classic page * @param tblClassicUnitId - The ID of the Taboola classic unit */ constructor(tblClassicPageId: string, tblClassicUnitId: string); /** * Disables the TRC cache. * Disabling the cache is useful for development and testing purposes. */ disableTRCCache(): void; /** * Requests specific campaigns to be included in the fetched content. * @param campaigns - Array of campaign IDs to request */ requestCampaigns(...campaigns: number[]): void; /** * Adds specific geo targeting to the URL request. * @param geo - The geo targeting string (e.g., "c-US_r-CA") */ requestGeo(geo: string): void; /** * Adds custom query parameters to the template JS URL. * These parameters will be added to the templateJS url as query parameters. * @param queryKey - The key for the query parameter * @param queryValue - The value for the query parameter */ addCustomQueryParams(queryKey: string, queryValue: string): void; /** * Sets a specific TRC server to route all requests to. * @param trcServerName - The name of the TRC server to use */ setSpecificTRCServer(trcServerName: string): void; /** * Forces a random video campaign and sets its format . * If no format is specified, defaults to MP4. * @param videoCampaign - The video campaign format to use */ setVideoCampaignFormat(videoCampaign: string): void; /** * Enables or disables TRC debug mode. * When enabled, additional debugging information will be included in the response. * @param shouldEnableTrcDebugMode - Whether to enable TRC debug mode */ setTrcDebugMode(shouldEnableTrcDebugMode: boolean): void; } export default TemplateJS; //# sourceMappingURL=TemplateJS.d.ts.map