import * as _angular_core from '@angular/core';
import * as i1 from '@angular/common';
import * as i3 from '@angular/router';
import { AXPEntity, AXPMenuProvider, AXPMenuProviderContext, AXPSearchCommandProvider, AXPSearchResult } from '@acorex/platform/common';
import { AXPEntityDefinitionLoader, AXPEntityDefinitionPreloader, AXPEntityPreloadEntity, AXPEntityModel, AXMEntityCrudServiceImpl } from '@acorex/platform/layout/entity';
import { AXPPermissionDefinitionProvider, AXPPermissionDefinitionProviderContext } from '@acorex/platform/auth';
import { AXPBreadcrumbItem, AXPActionMenuItem } from '@acorex/platform/core';
import { AXPPageLayoutBaseComponent } from '@acorex/platform/layout/views';

declare class AXMEmergencyContactEntityModule {
    static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXMEmergencyContactEntityModule, never>;
    static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXMEmergencyContactEntityModule, never, never, never>;
    static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXMEmergencyContactEntityModule>;
}

declare class AXMContactManagementModule {
    static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXMContactManagementModule, never>;
    static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXMContactManagementModule, never, [typeof i1.CommonModule, typeof AXMEmergencyContactEntityModule, typeof i3.RouterModule], never>;
    static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXMContactManagementModule>;
}

declare const RootConfig: {
    config: {
        i18n: string;
    };
    module: {
        name: string;
        title: string;
        icon: string;
    };
    entities: {
        emergencyContact: {
            name: string;
            title: string;
            titlePlural: string;
            icon: string;
        };
    };
};

declare class AXMContactManagementEntityProvider implements AXPEntityDefinitionLoader, AXPEntityDefinitionPreloader {
    private injector;
    preload(): AXPEntityPreloadEntity[];
    get(moduleName: string, entityName: string): Promise<AXPEntity | null>;
    list(): Promise<{
        name: string;
        module: string;
    }[]>;
}

declare class AXMContactManagementMenuProvider implements AXPMenuProvider {
    private entityService;
    private sessionService;
    provide(context: AXPMenuProviderContext): Promise<void>;
    static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXMContactManagementMenuProvider, never>;
    static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXMContactManagementMenuProvider>;
}

declare class AXMContactManagementSearchCommandProvider extends AXPSearchCommandProvider {
    commands: AXPSearchResult[];
}

declare class AXMPermissionDefinitionProvider implements AXPPermissionDefinitionProvider {
    private readonly translateService;
    define(context: AXPPermissionDefinitionProviderContext): Promise<void>;
}

interface AXMContactManagementEmergencyContactEntityModel extends AXPEntityModel<string> {
    name: string;
    shortName?: string;
    description?: string;
    categoryIds?: string[];
    phoneNumber: string;
    alternateNumbers?: string[];
    textNumber?: string;
    website?: string;
    email?: string;
    country?: string;
    region?: string;
    city?: string;
    isNational: boolean;
    isRegional: boolean;
    isLocal: boolean;
    availability: string;
    languages?: string[];
    isTextCapable: boolean;
    isVideoCallCapable: boolean;
    whenToCall?: string;
    whenNotToCall?: string;
    instructions?: string;
    priority: number;
    isActive: boolean;
    isVerified: boolean;
    lastVerified?: Date;
    showOnDashboard: boolean;
    requiresConfirmation: boolean;
    isQuickDial: boolean;
    additionalInfo?: string;
}

declare abstract class AXMEmergencyContactService extends AXMEntityCrudServiceImpl<string, AXMContactManagementEmergencyContactEntityModel> {
}
declare class AXMEmergencyContactServiceImpl extends AXMEmergencyContactService {
    constructor();
    static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXMEmergencyContactServiceImpl, never>;
    static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXMEmergencyContactServiceImpl>;
}

declare class AXMEmergencyContactsPageComponent extends AXPPageLayoutBaseComponent {
    private emergencyContactService;
    protected allContacts: _angular_core.WritableSignal<AXMContactManagementEmergencyContactEntityModel[]>;
    protected loading: _angular_core.WritableSignal<boolean>;
    protected isLargeScreen: _angular_core.WritableSignal<boolean>;
    protected expandedContactIds: _angular_core.WritableSignal<Set<string>>;
    protected quickDialContacts: _angular_core.Signal<AXMContactManagementEmergencyContactEntityModel[]>;
    protected dashboardContacts: _angular_core.Signal<AXMContactManagementEmergencyContactEntityModel[]>;
    protected allActiveContacts: _angular_core.Signal<AXMContactManagementEmergencyContactEntityModel[]>;
    protected displayContacts: _angular_core.Signal<AXMContactManagementEmergencyContactEntityModel[]>;
    onResize(): void;
    private checkScreenSize;
    ngOnInit(): Promise<void>;
    private loadEmergencyContacts;
    protected toggleExpanded(contactId: string): void;
    protected isExpanded(contactId: string): boolean;
    protected handleCallContact(contact: AXMContactManagementEmergencyContactEntityModel): void;
    protected handleTextContact(contact: AXMContactManagementEmergencyContactEntityModel): void;
    protected handleVisitWebsite(contact: AXMContactManagementEmergencyContactEntityModel): void;
    protected handleCopyNumber(contact: AXMContactManagementEmergencyContactEntityModel): Promise<void>;
    protected handleRefresh(): void;
    protected getPrimaryAction(contact: AXMContactManagementEmergencyContactEntityModel): 'call' | 'text';
    protected performPrimaryAction(contact: AXMContactManagementEmergencyContactEntityModel): void;
    protected getPrimaryActionLabel(contact: AXMContactManagementEmergencyContactEntityModel): string;
    protected getPrimaryActionColor(contact: AXMContactManagementEmergencyContactEntityModel): 'primary' | 'danger';
    protected getCoverageText(contact: AXMContactManagementEmergencyContactEntityModel): string;
    protected getCapabilitiesText(contact: AXMContactManagementEmergencyContactEntityModel): string;
    protected getPriorityColor(priority: number): string;
    protected getPageTitle(): Promise<string>;
    protected getPageDescription(): Promise<string>;
    getPageBreadcrumbs(): Promise<AXPBreadcrumbItem[]>;
    getSecondaryMenuItems(): Promise<AXPActionMenuItem[]>;
    execute(command: any): Promise<void>;
    static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXMEmergencyContactsPageComponent, never>;
    static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXMEmergencyContactsPageComponent, "axm-emergency-contacts-page", never, {}, {}, never, never, true, never>;
}

declare class AXMEmergencyContactItemComponent {
    contact: _angular_core.InputSignal<AXMContactManagementEmergencyContactEntityModel>;
    protected expanded: _angular_core.WritableSignal<boolean>;
    protected categoryIcon: _angular_core.Signal<string>;
    protected categoryColor: _angular_core.Signal<string>;
    protected messageDisabled: _angular_core.Signal<boolean>;
    protected callDisabled: _angular_core.Signal<boolean>;
    protected coverageText: _angular_core.Signal<string>;
    protected capabilitiesText: _angular_core.Signal<string>;
    protected toggleExpanded(): void;
    protected handleCall(): void;
    protected handleText(): void;
    protected visitWebsite(): void;
    protected copyInfo(): Promise<void>;
    static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXMEmergencyContactItemComponent, never>;
    static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXMEmergencyContactItemComponent, "axm-emergency-contact-item", never, { "contact": { "alias": "contact"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
}

export { AXMContactManagementEntityProvider, AXMContactManagementMenuProvider, AXMContactManagementModule, AXMContactManagementSearchCommandProvider, AXMEmergencyContactEntityModule, AXMEmergencyContactItemComponent, AXMEmergencyContactService, AXMEmergencyContactServiceImpl, AXMEmergencyContactsPageComponent, AXMPermissionDefinitionProvider, RootConfig };
export type { AXMContactManagementEmergencyContactEntityModel };
