api-interface
Version:
10 lines (9 loc) • 525 B
TypeScript
import { KV } from './types';
export declare function stringify(data: KV, format?: boolean): string;
export declare function getRedirectUrl(url: string): Promise<string>;
export declare function getRequest(url: string, responseType?: string): Promise<KV>;
export declare function isQQ(qq: string): boolean;
export declare function isHttp(url: string): boolean;
export declare function isUrl(str: string): boolean;
export declare function isNumber(value: any): boolean;
export declare function throwUrlError(): void;