import { OnInit, OnDestroy, ChangeDetectorRef } from '@angular/core';
import { ResourceData, MJTemplateEntity } from '@memberjunction/core-entities';
import { BaseResourceComponent, NavigationService } from '@memberjunction/ng-shared';
import * as i0 from "@angular/core";
interface TemplateCardData {
    Entity: MJTemplateEntity;
    ContentTypes: string[];
    LastUpdated: Date | null;
    CategoryName: string;
}
export declare class CommunicationTemplatesResourceComponent extends BaseResourceComponent implements OnInit, OnDestroy {
    private cdr;
    private navService;
    allTemplates: TemplateCardData[];
    filteredTemplates: TemplateCardData[];
    categories: string[];
    categoryFilter: string;
    isLoading: boolean;
    private searchTerm;
    constructor(cdr: ChangeDetectorRef, navService: NavigationService);
    ngOnInit(): Promise<void>;
    ngOnDestroy(): void;
    loadData(): Promise<void>;
    private buildTemplateCard;
    private extractCategories;
    getCategoryCount(category: string): number;
    onSearch(event: Event): void;
    onCategoryFilter(category: string): void;
    private applyFilter;
    openTemplate(template: MJTemplateEntity): void;
    addNewTemplate(): void;
    getContentTypeIcon(type: string): string;
    GetResourceDisplayName(data: ResourceData): Promise<string>;
    GetResourceIconClass(data: ResourceData): Promise<string>;
    static ɵfac: i0.ɵɵFactoryDeclaration<CommunicationTemplatesResourceComponent, never>;
    static ɵcmp: i0.ɵɵComponentDeclaration<CommunicationTemplatesResourceComponent, "mj-communication-templates-resource", never, {}, {}, never, never, false, never>;
}
export {};
//# sourceMappingURL=communication-templates-resource.component.d.ts.map