-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.d.ts
124 lines (105 loc) · 4.04 KB
/
global.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
import type { Db } from "mongodb";
// import type { Cache } from 'inmemfilecache';
// import type WebSocket from "ws";
import { WebSocket as WSSK } from "ws";
// import type {ObjectId} from 'mongodb'
import type { User } from "./components/User";
import { AllSymElement, GoodSymElement } from "./components/Worker/Libs/IRBourse";
import { DSKey, DSource } from "./components/ACI/Datasource";
import { Session } from "./components/SSRVerify";
declare type ScheduleJob = any;
declare type never = any
declare global {
declare namespace JSX {
type Elm = React.HTMLAttributes<HTMLElement> & { class?: string };
interface IntrinsicElements {
[elemName: string]: React.DetailedHTMLProps<Elm, HTMLElement>,
}
}
function SSRVerify(context:any):Promise<Session>
var SWebsocket: typeof import('ws');
var ACI: { [key in string]: any } = {};
var ASI: { [s: string]: Array<SWebsocket> }
var workers: Array<any> = [];
var ACIRequires: { [key in string]: any } = {};
var AWIRequires: { [key in string]: any } = {};
function Round(number, digits): number
type Elm = React.HTMLAttributes<HTMLElement> & { class?: string };
interface IntrinsicElements {
[elemName: string]: React.DetailedHTMLProps<Elm, HTMLElement>,
}
var setScroller: (id: string) => void;
var Datasources: { [key in DSKey]: DSource }
var db: import("mongodb").Db;
var mongo: import("mongodb").MongoClient;
var styles: any;
var cache: Cache;
var main: Function;
var nodeenv: string;
var devmode: boolean;
function log(obj: { text: string, type?: "ok" | "error" | "warning", date?: Date }): void;
function sss(arg1: any, arg2?: any): void;
function reloadsession(): void;
function reload(): void;
function closejournal(): void;
function journals(arg: { items?: any[], jids?: string[] }): void;
namespace QSON {
export function parse(input: string): any;
export function stringify(input: Object): String;
}
interface String {
betweenxy(str1: string, str2: string, startindex?: number): string;
}
var fs: typeof import('fs');
var P: PConfig
var user: User
var lang: any
var langs: { [key in string]: any }
var componentids: any
var Android: any
interface Window {
FromAndroid: (obj: any) => void;
countries: any
attachEvent: any
}
interface EventTarget {
scrollIntoView: (options: ScrollIntoViewOptions | boolean) => void
select: () => void
value: any
}
var ObjectId: any
function closelog(): void;
function cdn(url: string): string;
function api(url:string, data?:any):Promise<any>;
var device: {
send: (obj: any, expirems: number, deviceobj?: any) => void,
ws: any,
software: string,
wsopen: boolean,
wsport: number,
version: number,
platform: string,
}
function onunloader(): void;
var fs: typeof import('fs');
function success(text: string, fast: boolean = false): void
function error(text: string): void
function alerter(title: string, text?: string | Element, style?: any): Promise<void>;
function prompter(title: string, text?: string, maxlen?: number, small?: boolean, defaulttext?: string, style?: any,
selectonclick: boolean = true,
type: ("text" | "number" | "url" | "email" | "tel") = "text"): Promise<string>
function confirmer(title: string, text?: string | element, oktext?: string, canceltext?: string): Promise<boolean>
var confirm: any
var DEVMODE: boolean = false;
var winscrollers: { []: () => void }
function fetchv2(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
var parentdiv: HTMLElement
function MD5(input: string | Buffer): string
interface String {
betweenxy(str1: string, str2: string, startindex?: number): string
}
interface Array {
includesid(object: any)
}
function Schedule(hour: number, minute: number, second: number, cb: () => ScheduleJob)
}