import { type HttpErrorResponse } from '@angular/common/http';
import { type MonoTypeOperatorFunction } from 'rxjs';
import { type ActionCreator } from '@ngrx/store/src/models';
import { type Action } from '@ngrx/store';
import { type ServerError } from '@dereekb/util';
export interface ServerErrorParams {
    error: ServerError;
}
/**
 * Converts the error response to ServerErrorParams.
 */
export declare function convertServerErrorParams(httpError: HttpErrorResponse | object): ServerErrorParams;
/**
 * Catches error server params and feeds them to an action that takes ServerErrorParams as a prop.
 */
export declare function catchErrorServerParams<E extends ServerErrorParams, T extends string>(action: ActionCreator<T, (props: E) => E & Action<T>>, mapError?: (error: ServerErrorParams) => E): MonoTypeOperatorFunction<E & Action<T>>;
