import { SkyLogService } from '@skyux/core'; import { SkyModalService } from '@skyux/modals'; import * as i0 from '@angular/core'; import { OnInit } from '@angular/core'; import * as i1 from '@skyux/i18n'; import { SkyLibResourcesService } from '@skyux/i18n'; import { BehaviorSubject } from 'rxjs'; import * as i6 from '@angular/common'; /** * @deprecated We recommend using a standard modal with an error component instead. */ declare class ErrorModalConfig { /** * The title to display in the modal error message. * @required */ errorTitle: string | undefined; /** * The description to provide additional details in the modal error message. * @required */ errorDescription: string | undefined; /** * The label for the action button that closes the modal error message. * @required */ errorCloseText: string | undefined; } /** * Opens a modal to display a SKY UX-themed error message. * @deprecated We recommend using a standard modal with an error component instead. */ declare class SkyErrorModalService { #private; constructor(modalSvc: SkyModalService, logService?: SkyLogService); /** * Text for the the error message, including title, description, and action label. * @deprecated We recommend using a standard modal with an error component instead. */ open(config: ErrorModalConfig): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * The type of error to display. */ type SkyErrorType = 'broken' | 'construction' | 'notfound' | 'security'; /** * internal */ declare class SkyErrorService { replaceDefaultDescription: BehaviorSubject; replaceDefaultTitle: BehaviorSubject; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * Displays a SKY UX-themed error message. */ declare class SkyErrorComponent implements OnInit { #private; errorSvc: SkyErrorService; /** * The set of pre-defined values for the image, * title, and description. */ set errorType(value: SkyErrorType | undefined); get errorType(): SkyErrorType | undefined; /** * Whether to display the error image. * @default true */ showImage: boolean | undefined; get hostErrorType(): SkyErrorType | undefined; defaultTitle: string | undefined; defaultDescription: string | undefined; constructor(resourcesSvc: SkyLibResourcesService, errorSvc: SkyErrorService); ngOnInit(): void; setErrorTypeFields(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Specifies an image to display with the error message. */ declare class SkyErrorImageComponent { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Specifies a title to display with the error message. */ declare class SkyErrorTitleComponent { #private; /** * Whether to replace the default title. If `false`, the content * from this component is added after the default title. * @default false */ set replaceDefaultTitle(value: boolean | undefined); constructor(errorSvc: SkyErrorService); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Specifies a description to provide additional details about the error. */ declare class SkyErrorDescriptionComponent { #private; /** * Whether to replace the default description. If `false`, the content * from this component is added after the default description. * @default false */ set replaceDefaultDescription(value: boolean | undefined); constructor(errorSvc: SkyErrorService); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Specifies an interactive element to include with the error message. * For example, you can include a button to reload the page or to refresh data. */ declare class SkyErrorActionComponent { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Import into any component library module that needs to use resource strings. */ declare class SkyErrorsResourcesModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SkyErrorModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { ErrorModalConfig, SkyErrorModalService, SkyErrorModule, SkyErrorActionComponent as λ1, SkyErrorDescriptionComponent as λ2, SkyErrorImageComponent as λ3, SkyErrorTitleComponent as λ4, SkyErrorComponent as λ5 }; export type { SkyErrorType };