ethers.js/lib.commonjs/utils/geturl-browser.d.ts

22 lines
823 B
TypeScript
Raw Normal View History

2023-10-10 03:27:56 +03:00
import type { FetchGetUrlFunc, FetchRequest, FetchCancelSignal, GetUrlResponse } from "./fetch.js";
2023-03-04 04:25:07 +03:00
declare global {
class Headers {
constructor(values: Array<[string, string]>);
forEach(func: (v: string, k: string) => void): void;
}
class Response {
status: number;
statusText: string;
headers: Headers;
arrayBuffer(): Promise<ArrayBuffer>;
}
type FetchInit = {
method?: string;
headers?: Headers;
body?: Uint8Array;
};
function fetch(url: string, init: FetchInit): Promise<Response>;
}
2023-10-10 03:27:56 +03:00
export declare function createGetUrl(options?: Record<string, any>): FetchGetUrlFunc;
2023-03-04 04:25:07 +03:00
export declare function getUrl(req: FetchRequest, _signal?: FetchCancelSignal): Promise<GetUrlResponse>;
//# sourceMappingURL=geturl-browser.d.ts.map