import { IMetadataProvider, UserInfo } from '@memberjunction/core'; /** * This is an abstract base class, use the EntityDocumentTemplateParser class or a sub-class thereof. */ export declare abstract class EntityDocumentTemplateParserBase { static ClearCache(): void; static CreateCacheKey(EntityID: string, EntityRecordPrimaryKey: string, Content: string): string; protected static __cache: { [key: string]: string; }; protected static get _cache(): { [key: string]: string; }; /** Optional provider override; falls back to Metadata.Provider when not set. */ protected _provider?: IMetadataProvider; /** Returns the active provider — explicit override if set, otherwise the global default. */ protected get ProviderToUse(): IMetadataProvider; /** * This method will parse an entity document template and replace values within ${} placeholders with actual values from the entity record. In the case of function calls * within the placeholders, the functions object must be provided to parse the function calls. * @param Template - the document template to parse * @param EntityID - the ID of the entity * @param EntityRecord - the values for the entity record * @param ContextUser - the current user * @returns the evaluated value of the template incorporating fields and function call(s), if any. */ Parse(Template: string, EntityID: string, EntityRecord: any, ContextUser: UserInfo): Promise; protected evalSingleArgument(argument: string, entityID: string, entityRecord: any, ContextUser: UserInfo): Promise; } //# sourceMappingURL=EntityDocumenTemplateParserBase.d.ts.map