@mediarithmics/plugins-nodejs-sdk
Version:
This is the mediarithmics nodejs to help plugin developers bootstrapping their plugin without having to deal with most of the plugin boilerplate
19 lines (18 loc) • 1.11 kB
TypeScript
import Handlebars from 'handlebars';
import { AdRendererRequest, AdRendererTemplateInstanceContext } from '../../mediarithmics/plugins/ad-renderer';
import { ExploreableInternalsTemplatingEngine, ProfileDataTemplater, TemplateMacro } from '../../mediarithmics/plugins/common/TemplatingInterface';
import { URLHandlebarsRootContext } from './interfaces';
export declare const buildURLHandlebarsRootContext: (adRenderRequest: AdRendererRequest, instanceContext: AdRendererTemplateInstanceContext) => URLHandlebarsRootContext;
export declare class HandlebarsEngine implements ExploreableInternalsTemplatingEngine<void, string, HandlebarsTemplateDelegate<unknown>, hbs.AST.Program>, ProfileDataTemplater {
engine: typeof Handlebars;
init(): void;
enableProfileDataLayer(): void;
parse(template: string): hbs.AST.Program;
getMacros(internals: hbs.AST.Program): TemplateMacro[];
compile(template: string | hbs.AST.Program): HandlebarsTemplateDelegate<any>;
}
export declare class RecommendationsHandlebarsEngine extends HandlebarsEngine {
private: any;
constructor();
init(): void;
}