import './_ext'; import { EventNoticer } from './event'; type Platform = 'darwin' | 'linux' | 'win32' | 'android' | 'freebsd' | 'openbsd' | 'sunos' | 'cygwin' | 'netbsd' | 'web'; export type Optopns = Dict; export interface WebPlatformFlags { windows: boolean; windowsPhone: boolean; linux: boolean; android: boolean; macos: boolean; ios: boolean; iphone: boolean; ipad: boolean; ipod: boolean; mobile: boolean; touch: boolean; trident: boolean; presto: boolean; webkit: boolean; gecko: boolean; } interface IProcess { getNoticer(name: string): EventNoticer; exit(code?: number): void; } export declare let _process: IProcess; /** * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) * because the buffer-to-string conversion in `fs.readFileSync()` * translates it to FEFF, the UTF-16 BOM. */ export declare function stripBOM(content: string): string; export declare function getConfig(): Dict; export declare function setConfig(cfg: any): void; /** * @method hash # gen hash value * @arg input {Object} * @ret {String} */ declare function hash(data: any): string; declare function sleep(time: number, defaultValue?: T): Promise; declare function unrealized(): any; declare const _default: { debug: boolean; version: typeof unrealized; platform: Platform; isNode: boolean; isQuark: boolean; isWeb: boolean; webFlags: WebPlatformFlags | null; argv: string[]; options: Optopns; unrealized: typeof unrealized; nextTick: (cb: (...args: A) => R, ...args: A) => void; exit: (code?: number) => void; sleep: typeof sleep; gc: () => void; runScript: typeof unrealized; hashCode: (obj: any) => import("./defs").Int; hash: typeof hash; }; export default _default;