import { Actions, AnyAction, ComponentDescriptorType, States } from '@topwrite/common'; import * as models from './models'; import { ComponentProps } from 'react'; import Markdown from './components/markdown'; import { MenuItemProps, MenuProps } from './components/menu'; import Color from 'color'; type Models = typeof models; declare module '@topwrite/common' { function useSelector(model: T): States[T]; function useActions(model: T): Actions[T]; function useModel(model: T): [States[T], Actions[T]]; interface Model { getState(model: T): Generator[T]>; } interface OptionsStateType { preview: boolean; poweredBy: false | { name: string; link: string; }; } interface ComponentsMap { 'page': ComponentDescriptorType; 'page:menu': ComponentDescriptorType; 'page:menu:item': ComponentDescriptorType; 'page:article:before': ComponentDescriptorType; 'page:article:after': ComponentDescriptorType; 'page:article:aside:before': ComponentDescriptorType; 'page:article:aside:after': ComponentDescriptorType; 'page:article:markdown': ComponentDescriptorType>; 'page:asset': ComponentDescriptorType; } interface OptionsStateType { } interface ThemeType { primaryColor: Color; } } export {};