/** * @fileOverview json result obj constructor * @author Max */ export interface errorConstructorInterface { (msg: string, code?: number): any; } export interface successConstructorInterface { (data: any, code?: number): any; } export declare function init(options?: { error?: errorConstructorInterface; success?: successConstructorInterface; }): void; export declare function error(msg: string, code?: number): any; export declare function success(data: any, code?: number): any;