UNPKG

2.1 kBTypeScriptView Raw
1/**
2 * Wechaty Chatbot SDK - https://github.com/wechaty/wechaty
3 *
4 * @copyright 2016 Huan LI (李卓桓) <https://github.com/huan>, and
5 * Wechaty Contributors <https://github.com/wechaty>.
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 */
20/// <reference path="../../src/typings.d.ts" />
21/// <reference path="../../src/io-peer/json-rpc-peer.d.ts" />
22import Raven from 'raven';
23import { FileBox, MemoryCard, log } from 'wechaty-puppet';
24import { PuppetModuleName } from './puppet-config';
25import { VERSION } from './version';
26export interface DefaultSetting {
27 DEFAULT_PORT: number;
28 DEFAULT_APIHOST: string;
29 DEFAULT_PROTOCOL: string;
30}
31export declare class Config {
32 default: DefaultSetting;
33 apihost: string;
34 serviceIp: string;
35 systemPuppetName(): PuppetModuleName;
36 name: string | undefined;
37 token: string | undefined;
38 debug: boolean;
39 httpPort: string | number;
40 docker: boolean;
41 constructor();
42 validApiHost(apihost: string): boolean;
43}
44export declare const CHATIE_OFFICIAL_ACCOUNT_ID = "gh_051c89260e5d";
45export declare function qrCodeForChatie(): FileBox;
46export declare const FOUR_PER_EM_SPACE: string;
47export declare const AT_SEPARATOR_REGEX: RegExp;
48export declare function qrcodeValueToImageUrl(qrcodeValue: string): string;
49export declare function isProduction(): boolean;
50declare const looseInstanceOfFileBox: (o: any) => o is FileBox;
51export { log, FileBox, MemoryCard, Raven, looseInstanceOfFileBox, VERSION, };
52export declare const config: Config;
53//# sourceMappingURL=config.d.ts.map
\No newline at end of file