import React from 'react'; import { DetailEvents } from '.'; export interface IRoute { path: string; props?: Object; events?: DetailEvents; } export interface IRouteWithKey extends IRoute { key: React.Key; } export interface IPreview { url: string; name: string; } interface DetailContainerContext { descriptionChanged: boolean; setDescriptionChanged: (changed: boolean) => void; outside: boolean; /** css 变量的高度 */ topAnnouncementHeight: string; routes: IRouteWithKey[]; match: IRouteWithKey; open: (route: IRoute) => void; push: (nextRoute: IRoute) => void; pop: () => void; close: () => void; eventsMap: Map; fullPage?: boolean; resizeRef: React.MutableRefObject; filePreview?: IPreview; setFilePreview: (filePreview?: IPreview) => void; hidden: boolean; setHidden: (hidden: boolean) => void; } declare const DetailContainerContext: React.Context; declare function useDetailContainerContext(): DetailContainerContext; export { useDetailContainerContext }; export default DetailContainerContext;