| 1 | import libs from './lib'; | 1 | import libs from './lib'; |
| 2 | import getContext from './scripts/st-context'; | 2 | import getContext from './scripts/st-context'; |
| 3 | | 3 | |
| 4 | // Global namespace modules | 4 | declare global { |
| 5 | declare var ai; | 5 | // Global namespace modules |
| 6 | declare var pdfjsLib; | 6 | interface Window { |
| 7 | declare var ePub; | 7 | ai: any; |
| | 8 | } |
| 8 | | 9 | |
| 9 | declare var SillyTavern: { | 10 | declare var pdfjsLib; |
| 10 | getContext(): typeof getContext; | 11 | declare var ePub; |
| 11 | llm: any; | 12 | |
| 12 | libs: typeof libs; | 13 | declare var SillyTavern: { |
| 13 | }; | 14 | getContext(): typeof getContext; |
| | 15 | llm: any; |
| | 16 | libs: typeof libs; |
| | 17 | }; |
| 14 | | 18 | |
| 15 | declare global { | | |
| 16 | // Jquery plugins | 19 | // Jquery plugins |
| 17 | interface JQuery { | 20 | interface JQuery { |
| 18 | nanogallery2(options?: any): JQuery; | 21 | nanogallery2(options?: any): JQuery; |