export declare const storeLogger: (opts?: LoggerOptions) => (reducer: Function) => (state: any, action: any) => any; export interface LoggerOptions { /** * 'log' | 'console' | 'warn' | 'error' | 'info'. Default: 'log' */ level?: any; /** * Should log group be collapsed? default: false */ collapsed?: boolean; /** * Print duration with action? default: true */ duration?: boolean; /** * Print timestamp with action? default: true */ timestamp?: boolean; filter?: LoggerFilterOption; /** * Transform state before print default: state => state */ stateTransformer?: (state: Record) => Record; /** * Transform action before print default: actn => actn */ actionTransformer?: (actn: Record) => Record; colors?: LoggerColorsOption; } export interface LoggerFilterOption { /** * Only print actions included in this list - has priority over blacklist */ whitelist?: string[]; /** * Only print actions that are NOT included in this list */ blacklist?: string[]; } export interface LoggerColorsOption { title: (action: Record) => string; prevState: (prevState: Record) => string; action: (action: Record) => string; nextState: (nextState: Record) => string; error: (error: any, prevState: Record) => string; }