import * as _odx_angular_components_error_page from '@odx/angular/components/error-page'; import * as _angular_core from '@angular/core'; import { EnvironmentProviders } from '@angular/core'; import { DynamicContent } from '@odx/angular/cdk/dynamic-view'; import { ConfigDependencies, ConfigProvider } from '@odx/angular/utils'; /** * Represents the ErrorPageComponent class. * This component is responsible for displaying an error page. */ declare class ErrorPageComponent { readonly element: _angular_core.ElementRef; /** * Represents the options for the error page component. * * @type {ErrorPageConfig} */ options: _odx_angular_components_error_page.ErrorPageConfig; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * Defines the configuration for an error page used within an application. This can include custom icons, * titles, descriptions, actions, and an optional error message. * @property {string} [icon] - The name of the icon to display on the error page (e.g., `core::error`). * @property {DynamicContent} title - The title content for the error page, which can be a string or a dynamic template. * @property {DynamicContent} [description] - Optional description content for the error page. * @property { { label: DynamicContent; action: () => void; }[] } actions - A list of actions that can be taken from the error page, each with a label and an action function. * @property {DynamicContent} [errorMessage] - Optional additional error message content. */ interface ErrorPageConfig { icon?: string | null; title: DynamicContent; description?: DynamicContent; actions: { label: DynamicContent; action: () => void; }[]; errorMessage?: DynamicContent; } declare const ErrorPageConfig: _angular_core.InjectionToken>; declare const ErrorPageDefaultConfig: ErrorPageConfig; declare const injectErrorPageConfig: () => ErrorPageConfig; declare const provideErrorPageConfig: >>(config: ConfigProvider, D>) => _angular_core.FactoryProvider | _angular_core.ValueProvider; /** * Configures and provides the necessary providers for an error page, using a configuration object that specifies * icons, titles, descriptions, and actions. * * @param {ConfigProvider, D>} config - A configuration object or provider function that supplies an `ErrorPageConfig`. * @returns {EnvironmentProviders} Returns a configuration that can be used to register the error page providers. * */ declare function configureErrorPage(config: ConfigProvider, D>): EnvironmentProviders; export { ErrorPageComponent, ErrorPageConfig, ErrorPageDefaultConfig, configureErrorPage, injectErrorPageConfig, provideErrorPageConfig };