import { type MessageResponse } from "./shared.js"; export { POSTreq_Iframe } from './iframe.js'; export declare class POSTreq { _iframe: HTMLIFrameElement; _url?: string; loaded: boolean; currentlyFetching: boolean; onLoad: Function; constructor(params?: { style?: string; url?: string; parentElement?: HTMLElement; }); private onMessage; fetch(url: string, req?: RequestInit): Promise; getPolyfill(): Function; } declare class Response { status: number; statusText: string; _json: any; _arrayBuffer: any; _formData: any; _blob: any; _text: any; ok: boolean; type: string; redirected: boolean; url: string; _data: MessageResponse; constructor(res: MessageResponse); /** * @deprecated POSTreq does not support streaming */ get body(): ReadableStreamPrototype; get headers(): HeadersPrototype; get bodyUsed(): boolean; json(): Promise; arrayBuffer(): Promise; formData(): Promise; blob(): Promise; text(): Promise; } declare class HeadersPrototype { private _headers; constructor(headers: { [key: string]: string; }); /** * @deprecated POSTreq does not support this function */ append(name: string, value: string): void; /** * @deprecated POSTreq does not support this function */ delete(name: string): void; forEach(callback: (value: string, key: string, parent: HeadersPrototype) => void, thisArg?: any): void; get(name: string): string | null; has(name: string): boolean; /** * @deprecated POSTreq does not support this function */ set(name: string, value: string): void; entries(): [string, string][]; [Symbol.iterator](): Iterator<[string, string]>; keys(): Iterator; values(): Iterator; } declare class ReadableStreamPrototype { /** * @deprecated POSTreq does not support this function */ cancel(reason: any): Promise; /** * @deprecated POSTreq does not support this function */ pipeTo(writable: WritableStream, options: object): Promise; /** * @deprecated POSTreq does not support this function */ pipeThrough(transformStream: object, options: object): ReadableStream; /** * @deprecated POSTreq does not support this function */ getReader(options: object): ReadableStreamDefaultReader; /** * @deprecated POSTreq does not support this function */ tee(): [ReadableStream, ReadableStream]; /** * @deprecated POSTreq does not support this function */ releaseLock(): void; /** * @deprecated POSTreq does not support this function */ read(view: ArrayBufferView): Promise<{ done: false; value: ArrayBufferView; } | { done: true; value?: undefined; }>; /** * @deprecated POSTreq does not support this function */ get locked(): boolean; }