|
| 1 | +import*asReactfrom'react'; |
| 2 | + |
| 3 | +declare module'core-coderoad'{ |
| 4 | + |
| 5 | +interfaceConfiguredStore{ |
| 6 | +reducer:Redux.Reducer; |
| 7 | +devMode?:boolean; |
| 8 | +throttle?:Object; |
| 9 | +} |
| 10 | + |
| 11 | +// store |
| 12 | +exportfunctionconfigureStore(config:ConfiguredStore):Redux.Store; |
| 13 | + |
| 14 | +// polyfills |
| 15 | +exportfunctionloadPolyfills():void; |
| 16 | + |
| 17 | +// options |
| 18 | +exportconsttutorialConfigOptions:Object; |
| 19 | + |
| 20 | +// selectors |
| 21 | +exportfunctionhintsSelector(state:CR.State):string[]; |
| 22 | +exportfunctionhintSelector(state:CR.State):string; |
| 23 | +exportfunctionpageSelector(state:CR.State):CR.Page; |
| 24 | +exportfunctionpageCompletedSelector(state:CR.State):boolean; |
| 25 | +exportfunctiontasksSelector(state:CR.State):CR.Task[]; |
| 26 | +exportfunctioncurrentTaskSelector(state:CR.State):CR.Task; |
| 27 | +exportfunctionvisibleTasksSelector(state:CR.State):CR.Task[]; |
| 28 | +exportfunctiontaskProgressSelector(state:CR.State):number; |
| 29 | +exportfunctiontaskByIndexSelector(state:CR.State,props:{index:number}):CR.Task; |
| 30 | +exportfunctionconfigSelector(state:CR.State):Tutorial.Config; |
| 31 | + |
| 32 | +// modules |
| 33 | + |
| 34 | +// alert |
| 35 | +exportfunctionalertReducer(open:boolean,action:Action):boolean; |
| 36 | +exportfunctionalertOpen(alert:Object); |
| 37 | +exportfunctionalertReplay(); |
| 38 | +exportfunctionalertClose(); |
| 39 | + |
| 40 | +// editor |
| 41 | +exportfunctiondirReducer(name:string):string; |
| 42 | +exportfunctioneditorReducer(name:string,action:Action):string; |
| 43 | +exportfunctioneditorDevToolsToggle(); |
| 44 | +exportfunctioneditorOpen(file:string,options?:Object); |
| 45 | +exportfunctioneditorInsert(content:string); |
| 46 | +exportfunctioneditorSet(content:string); |
| 47 | +exportfunctioneditorSave(); |
| 48 | +exportfunctioneditorScroll(content:string); |
| 49 | +exportfunctionsave(); |
| 50 | +exportfunctionopen(file:string,options?:Object); |
| 51 | +exportfunctionopenFolder(); |
| 52 | +exportfunctionset(content:string); |
| 53 | +exportfunctioninsert(content:string); |
| 54 | +exportfunctionopenDevTools(); |
| 55 | +exportfunctiontoggleDevTools(); |
| 56 | +exportfunctionclearConsole(); |
| 57 | +exportfunctionopenTerminal(); |
| 58 | +exportfunctioncloseAllPanels(); |
| 59 | +exportfunctionquit(); |
| 60 | + |
| 61 | +// route |
| 62 | +exportfunctionrouteReducer(route:string,action:Action):string; |
| 63 | +exportfunctionrouteSet(route:string); |
| 64 | + |
| 65 | +// window |
| 66 | +exportfunctionquit(); |
| 67 | +exportfunctionwindowToggle(); |
| 68 | +exportfunctionwindowReducer(open:boolean,action:Action):boolean; |
| 69 | + |
| 70 | +// components |
| 71 | + |
| 72 | +exportfunctionrender(app:React.Component<any,any>,target:HTMLElement):void; |
| 73 | + |
| 74 | +exportfunctionhighlight(text:string,lang:string):string; |
| 75 | + |
| 76 | +exportconstAlert:React.Component<any,any>; |
| 77 | +exportconstMarkdown:React.Component<any,any>; |
| 78 | +// export const RouteButton: React.Component<any, any>; |
| 79 | +// export const MenuLink: React.Component<any, any>; |
| 80 | + |
| 81 | +} |