export interface AbpAppConfigOptions { baseUrl?: string | (() => string) configPath?: string localizationPath?: string fetchOptions?: RequestInit headers?: Record defaultCulture?: string defaultResource?: string | null includeLocalizationResources?: boolean fetchImpl?: (input: RequestInfo | URL, init?: RequestInit) => Promise } export interface AbpAppConfigRequestOptions extends RequestInit { headers?: Record } export interface AbpCultureInfo { displayName?: string name?: string twoLetterIsoLanguageName?: string threeLetterIsoLanguageName?: string nativeName?: string isRightToLeft?: boolean dateTimeFormat?: { shortDatePattern?: string longDatePattern?: string shortTimePattern?: string longTimePattern?: string fullDateTimePattern?: string } } export interface AbpLocalizationResource { texts?: Record baseResources?: string[] } export interface AbpLocalizationData { currentCulture?: AbpCultureInfo resources?: Record } export interface AbpCurrentUserInfo { isAuthenticated?: boolean id?: string userName?: string email?: string name?: string surName?: string phoneNumber?: string emailVerified?: boolean phoneNumberVerified?: boolean roles?: string[] } export interface AbpAuthInfo { policies?: Record grantedPolicies?: Record } export interface AbpAppConfigSections { currentUser?: AbpCurrentUserInfo | null auth?: AbpAuthInfo | null localization?: Record | null features?: Record setting?: Record multiTenancy?: Record | null timing?: Record | null clock?: Record | null currentTenant?: Record | null globalFeatures?: Record | null } export interface AbpAppConfigSnapshot> { data: TConfig | null loading: boolean error: unknown initialized: boolean sections: AbpAppConfigSections localization: AbpLocalizationData | null localizationLoading: boolean localizationError: unknown localizationInitialized: boolean currentCulture: string } export type AbpAppConfigListener> = ( snapshot: Readonly> ) => void export interface AbpAppConfigClient> { fetchConfig: ( token?: string | null, requestOptions?: AbpAppConfigRequestOptions ) => Promise fetchLocalization: ( culture?: string, token?: string | null, requestOptions?: AbpAppConfigRequestOptions ) => Promise refetch: () => Promise t: (key: string, resourceName?: string | null) => string tWithFallback: (key: string, resourceName?: string | null) => string getSections: () => AbpAppConfigSections getSnapshot: () => Readonly> subscribe: (listener: AbpAppConfigListener) => () => void clear: () => void key: string } export declare function createAbpAppConfig>( options?: AbpAppConfigOptions ): AbpAppConfigClient