import { MenuDataItem } from '@ant-design/pro-layout'; export interface LayoutState { test: string; menus: MenuDataItem[]; } declare enum LayoutActionTypes { SET_LAYOUT_MENUS = 0, SET_LAYOUT_TEST = 1 } declare type LayoutActionType = keyof typeof LayoutActionTypes; export interface LayoutAction extends Partial { type: LayoutActionType; } declare const reducer: (state: LayoutState | undefined, action: { type: "SET_LAYOUT_MENUS" | "SET_LAYOUT_TEST"; } & Partial) => LayoutState; export default reducer;