|
import libs from './lib'; |
|
import getContext from './scripts/st-context'; |
|
import { power_user } from './scripts/power-user'; |
|
|
|
declare global { |
|
|
|
declare type InstructSettings = typeof power_user.instruct; |
|
|
|
|
|
interface Window { |
|
ai: any; |
|
} |
|
|
|
declare var pdfjsLib; |
|
declare var ePub; |
|
|
|
declare var SillyTavern: { |
|
getContext(): typeof getContext; |
|
llm: any; |
|
libs: typeof libs; |
|
}; |
|
|
|
|
|
interface JQuery { |
|
nanogallery2(options?: any): JQuery; |
|
nanogallery2(method: string, options?: any): JQuery; |
|
pagination(method: 'getCurrentPageNum'): number; |
|
pagination(method: string, options?: any): JQuery; |
|
pagination(options?: any): JQuery; |
|
izoomify(options?: any): JQuery; |
|
} |
|
|
|
namespace Select2 { |
|
interface Options<Result = DataFormat | GroupedDataFormat, RemoteResult = any> { |
|
|
|
|
|
|
|
|
|
|
|
searchInputPlaceholder?: string; |
|
|
|
|
|
|
|
|
|
|
|
|
|
searchInputCssClass?: string; |
|
} |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async function translate(text: string, lang: string, provider: string = null): Promise<string>; |
|
|
|
interface ConvertVideoArgs { |
|
buffer: Uint8Array; |
|
name: string; |
|
} |
|
|
|
|
|
|
|
|
|
|
|
function convertVideoToAnimatedWebp(args: ConvertVideoArgs): Promise<Uint8Array>; |
|
} |
|
|