UNPKG

mns-node-sdk

Version:
25 lines (24 loc) 956 B
/// <reference types="node" /> import * as requestPromise from 'request-promise-native'; export declare function requestRetry(uri: string, options: requestPromise.RequestPromiseOptions, retries: number): Promise<{ statusCode: string; headers: { [header: string]: string; }; body: string; }>; export declare function parseXML(input: string): Promise<any>; export declare function extract(arr: any): any; export declare function toXMLBuffer(entityType: string, params: any, subType?: string): Buffer; export declare function getResponseHeaders(headers: { [header: string]: string; }, attentions: string[] | undefined): { [header: string]: string; }; export declare function getEndpoint(accountId: string, region: string, secure?: boolean, internal?: boolean, vpc?: boolean): { endpoint: string; domain: string; }; export declare function getCanonicalizedMNSHeaders(headers: { [header: string]: string; }): string;