UNPKG

@fly/cdn

Version:
25 lines (24 loc) 524 B
/** @module HTTP */ import { sign } from 'aws4'; /** @hidden */ export interface Credentials { accessKeyId: string; secretAccessKey: string; sessionToken?: string; } /** @hidden */ export interface RequestOptions { path: string; host?: string; method?: string; headers?: any; service?: string; region?: string; } /** @hidden */ declare const aws: { fetch(opts: RequestOptions, credentials: Credentials): Promise<Response>; sign: typeof sign; }; /** @hidden */ export default aws;