import * as React from 'react'; import { MemoryRouterProps } from 'react-router-dom'; import { StoryWithRowIndex } from '../../stories/models/story'; import { ListViewDelegate } from '../../infrastructure/activity/listViewDelegate'; import { IStorytellerTheme } from '../../configuration/models/theme/storytellerTheme'; import { LoadingState } from '../../infrastructure/api/models/LoadingState'; type IRootElContextWrapperProps = { rootEl: HTMLElement | null; }; type IStorytellerRouterWrapperProps = { memoryRouterProps: MemoryRouterProps | null; }; export type IStorytellerStoriesRouterProps = IStorytellerRouterWrapperProps & IRootElContextWrapperProps & { displayLimit?: number; stories: StoryWithRowIndex[] | null; storiesStatus: LoadingState; basename: string; onError: (error: Error) => void; listDelegate: ListViewDelegate; theme: IStorytellerTheme; }; export interface IStoryViewRouteProps { storyId?: string | undefined; pageId?: string | undefined; basename?: string; } declare const StorytellerStoriesRouter: React.FunctionComponent; export default StorytellerStoriesRouter;