import { AnyAction } from '@reduxjs/toolkit'; import { Option } from 'fp-ts/lib/Option'; export declare type Transform = (a: A) => B; export declare type Void = () => T; export declare type LogTime = DateConstructor | Performance; export declare enum LogLevel { LOG = "LOG", WARN = "WARN", ERROR = "ERROR", INFO = "INFO" } export declare type LogEntry = { readonly action: AnyAction; readonly error: Option; readonly startedTime: Date; readonly took: number; readonly prevState: S; readonly nextState: S; }; export declare type Printer = { readonly logError: boolean; readonly logPredicate: (s: S, b: AnyAction) => boolean; readonly printLog: (s: LogEntry, o: O) => void; }; export declare type DefaultWebLoggerOption = { readonly logger: Console; readonly showError: boolean; readonly showDuration: boolean; readonly showTimestamp: boolean; readonly stateTransformer: Transform; readonly actionTransformer: Transform; readonly errorTransformer: Transform; readonly collapsePredicate: (a: S, b: AnyAction, c: LogEntry) => boolean; readonly logPredicate: (a: S, b: AnyAction) => boolean; readonly diffPredicate: (a: S, b: AnyAction) => boolean; readonly colors: LogColor; readonly logLevel: { readonly prevState: (a: TA, b: S) => LogLevel; readonly action: (a: TA) => LogLevel; readonly error: (a: TA, b: E, c: S) => LogLevel; readonly nextState: (a: TA, b: S) => LogLevel; }; }; export declare type LogColor = { readonly title: (a: AnyAction) => string; readonly prevState: (a: S) => string; readonly action: (a: AnyAction) => string; readonly nextState: (a: S) => string; readonly error: (a: E, b: S) => string; }; export declare enum LogLevelType { PREV_STATE = "PREV_STATE", NEXT_STATE = "NEXT_STATE", ACTION = "ACTION", ERROR = "ERROR" } export declare type DiffKind = 'N' | 'D' | 'E' | 'A'; export declare type LogSwapchain = { readonly before: Option; readonly after: Option; }; export declare type ExecuteActionResult = { readonly result: AnyAction; readonly error: Option; };