import React from 'react'; import type { Base16Theme } from 'react-base16-styling'; import { LiftedAction, LiftedState } from '@redux-devtools/core'; import { Action, Dispatch } from 'redux'; import type { DiffContext } from 'jsondiffpatch'; import type { Base16ThemeName } from './utils/themes.js'; import { Tab } from './ActionPreview.js'; import { DevtoolsInspectorAction, DevtoolsInspectorState } from './redux.js'; export interface ExternalProps> { dispatch: Dispatch>; preserveScrollTop?: boolean; draggableActions: boolean; select: (state: S) => unknown; theme: Base16ThemeName | Base16Theme; supportImmutable: boolean; diffObjectHash?: (item: unknown, index: number) => string; diffPropertyFilter?: (name: string, context: DiffContext) => boolean; hideMainButtons?: boolean; hideActionButtons?: boolean; invertTheme: boolean; sortStateTreeAlphabetically: boolean; disableStateTreeCollection: boolean; dataTypeKey?: string | symbol; tabs: Tab[] | ((tabs: Tab[]) => Tab[]); } interface DefaultProps { select: (state: unknown) => unknown; supportImmutable: boolean; draggableActions: boolean; theme: Base16ThemeName; invertTheme: boolean; } export interface DevtoolsInspectorProps> extends LiftedState { dispatch: Dispatch>; preserveScrollTop?: boolean; draggableActions: boolean; select: (state: S) => unknown; theme: Base16ThemeName | Base16Theme; supportImmutable: boolean; diffObjectHash?: (item: unknown, index: number | undefined) => string; diffPropertyFilter?: (name: string, context: DiffContext) => boolean; hideMainButtons?: boolean; hideActionButtons?: boolean; sortStateTreeAlphabetically: boolean; disableStateTreeCollection: boolean; invertTheme: boolean; dataTypeKey?: string | symbol; tabs: Tab[] | ((tabs: Tab[]) => Tab[]); } declare const _default: React.ComponentType>> & { update(monitorProps: ExternalProps>, state: DevtoolsInspectorState | undefined, action: DevtoolsInspectorAction): DevtoolsInspectorState; defaultProps: DefaultProps; }; export default _default;