import * as i0 from '@angular/core';
import { Injector } from '@angular/core';
import * as i2 from '@acorex/platform/core';
import { AXPAppStartUpService } from '@acorex/platform/core';
import * as i1 from '@angular/common';
import { AXPEntity, AXPMenuProvider, AXPMenuProviderContext, AXPSearchCommandProvider, AXPSearchResult, AXPLocaleProfile, AXPLanguage, AXPTimeZone } from '@acorex/platform/common';
export { AXPRegionalSetting } from '@acorex/platform/common';
import { AXPEntityModel, AXPEntityDefinitionLoader } from '@acorex/platform/layout/entity';
import { AXPPermissionDefinitionProvider, AXPPermissionDefinitionProviderContext } from '@acorex/platform/auth';
import { AXLocaleProfileProvider, AXLocaleProfile } from '@acorex/core/locale';

declare class AXMLocaleManagementModule {
    constructor(appInitService: AXPAppStartUpService, injector: Injector);
    static ɵfac: i0.ɵɵFactoryDeclaration<AXMLocaleManagementModule, never>;
    static ɵmod: i0.ɵɵNgModuleDeclaration<AXMLocaleManagementModule, never, [typeof i1.CommonModule, typeof i2.AXPComponentSlotModule], never>;
    static ɵinj: i0.ɵɵInjectorDeclaration<AXMLocaleManagementModule>;
}

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

declare function languagesFactory(injector: Injector): Promise<AXPEntity | null>;

interface AXMLocaleManagementLanguagesEntityModel extends AXPEntityModel<string> {
    code: string;
    title: string;
    nativeTitle: string;
    isRTL: boolean;
    isActive: boolean;
    createdAt: Date;
    updatedAt: Date;
}

declare function localesFactory(injector: Injector): Promise<AXPEntity | null>;

interface AXMLocaleManagementLocalesEntityModel extends AXPEntityModel<string> {
    languageId: string;
    code: string;
    title: string;
    countryCode: string;
    isDefault: boolean;
    isActive: boolean;
    createdAt: Date;
    updatedAt: Date;
}

declare function timezonesFactory(injector: Injector): Promise<AXPEntity | null>;

interface AXMLocaleManagementTimezonesEntityModel extends AXPEntityModel<string> {
    code: string;
    title: string;
    abbreviation: string;
    standardOffset: number;
    supportsDST: boolean;
    region: string;
    isActive: boolean;
    createdAt: Date;
    updatedAt: Date;
}

declare class AXMLocaleManagementEntityProvider implements AXPEntityDefinitionLoader {
    private injector;
    constructor(injector: Injector);
    get(moduleName: string, entityName: string): Promise<AXPEntity | null>;
    list(): Promise<{
        name: string;
        module: string;
    }[]>;
    static ɵfac: i0.ɵɵFactoryDeclaration<AXMLocaleManagementEntityProvider, never>;
    static ɵprov: i0.ɵɵInjectableDeclaration<AXMLocaleManagementEntityProvider>;
}

declare class AXMLocaleManagementMenuProvider implements AXPMenuProvider {
    private entityService;
    provide(context: AXPMenuProviderContext): Promise<void>;
}

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

declare class AXMLocaleManagementPermissionDefinitionProvider implements AXPPermissionDefinitionProvider {
    private injector;
    private readonly translateService;
    constructor(injector: Injector);
    define(context: AXPPermissionDefinitionProviderContext): Promise<void>;
    static ɵfac: i0.ɵɵFactoryDeclaration<AXMLocaleManagementPermissionDefinitionProvider, never>;
    static ɵprov: i0.ɵɵInjectableDeclaration<AXMLocaleManagementPermissionDefinitionProvider>;
}

declare class AXMLocaleManagementService {
    private readonly entityService;
    private readonly languagesDataAccessor;
    private readonly timezonesDataAccessor;
    private readonly localesDataAccessor;
    private activeQuery;
    getLocaleProfiles(): Promise<AXPLocaleProfile[]>;
    getLanguages(): Promise<AXPLanguage[]>;
    getLocales(): Promise<AXPLanguage[]>;
    getAvailableLanguages(): Promise<AXPLanguage[]>;
    getTimeZones(): Promise<AXPTimeZone[]>;
    getBrowserTimeZoneCode(): Promise<string>;
    static ɵfac: i0.ɵɵFactoryDeclaration<AXMLocaleManagementService, never>;
    static ɵprov: i0.ɵɵInjectableDeclaration<AXMLocaleManagementService>;
}

/**
 * Custom locale profile provider that integrates with the locale-management module
 * to provide profiles from the platform's data instead of the default UI library profiles
 */
declare class AXMLocaleProfileProviderService implements AXLocaleProfileProvider {
    private readonly localeManagementService;
    /**
     * Provides locale profiles from the locale-management module
     * This allows the platform to override the default UI library profiles
     */
    provide(): Promise<Record<string, () => Promise<AXLocaleProfile> | AXLocaleProfile>>;
    /**
     * Validates that a profile has all required properties
     */
    private isValidProfile;
    /**
     * Gets the list of available locale codes from the locale-management module
     * This can be used by other services to check available locales
     */
    getAvailableLocaleCodes(): Promise<string[]>;
    /**
     * Checks if a specific locale is available
     */
    hasLocale(localeCode: string): Promise<boolean>;
    static ɵfac: i0.ɵɵFactoryDeclaration<AXMLocaleProfileProviderService, never>;
    static ɵprov: i0.ɵɵInjectableDeclaration<AXMLocaleProfileProviderService>;
}

export { AXMLocaleManagementEntityProvider, AXMLocaleManagementMenuProvider, AXMLocaleManagementModule, AXMLocaleManagementPermissionDefinitionProvider, AXMLocaleManagementSearchCommandProvider, AXMLocaleManagementService, AXMLocaleProfileProviderService, RootConfig, languagesFactory, localesFactory, timezonesFactory };
export type { AXMLocaleManagementLanguagesEntityModel, AXMLocaleManagementLocalesEntityModel, AXMLocaleManagementTimezonesEntityModel };
