declare function withApi(name: string, data?: any): Promise; export default withApi;