yoomoney-sdk
Version:
⭐ Typed YooMoney Wallet SDK for NodeJS. Supported API's: Auth, Wallet & Notifications
13 lines (12 loc) • 645 B
TypeScript
export type QueryStringifiable = Record<string, string | number | boolean | readonly string[] | readonly number[] | readonly boolean[] | null | undefined>;
export type Agent = any;
/**
*
* @param {string} url URL адрес запроса
* @param {QueryStringifiable} parameters Параметры запроса
* @param {Record<string, string>=} [headers={}] Заголовки запроса
* @param {Agent} [agent] Агент запроса
*
* @return {Promise<any>} JSON в ответе
*/
export declare function fetch(url: string, parameters: QueryStringifiable, headers?: Record<string, string>, agent?: Agent): Promise<any>;