import { PayloadAction } from "@reduxjs/toolkit"; export interface FileContent { type: "file"; value: { src: string; content: Blob; }; } export interface FileArrayContent { type: "file[]"; value: { src: string; content: Blob; }[]; } export interface StringContent { type: "string"; value?: string; } export type Content = FileContent | FileArrayContent | StringContent | undefined; export interface FormBody { type: "form"; content: { [key: string]: Content; }; } export interface RawBody { type: "raw"; content: Content; } export interface EmptyBody { type: "empty"; } export type Body = EmptyBody | FormBody | RawBody; export type State = Body; export declare const slice: import("@reduxjs/toolkit").Slice Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }; } | { type: "file[]"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }[]; } | { type: "string"; value?: string | undefined; } | undefined; }; } | { type: "raw"; content: { type: "file"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }; } | { type: "file[]"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }[]; } | { type: "string"; value?: string | undefined; } | undefined; } | { type: "empty"; }) => { type: "empty"; }; setStringRawBody: (_state: { type: "form"; content: { [x: string]: { type: "file"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }; } | { type: "file[]"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }[]; } | { type: "string"; value?: string | undefined; } | undefined; }; } | { type: "raw"; content: { type: "file"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }; } | { type: "file[]"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }[]; } | { type: "string"; value?: string | undefined; } | undefined; } | { type: "empty"; }, action: PayloadAction) => { type: "raw"; content: { type: "string"; value: string; }; }; setFileRawBody: (_state: { type: "form"; content: { [x: string]: { type: "file"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }; } | { type: "file[]"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }[]; } | { type: "string"; value?: string | undefined; } | undefined; }; } | { type: "raw"; content: { type: "file"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }; } | { type: "file[]"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }[]; } | { type: "string"; value?: string | undefined; } | undefined; } | { type: "empty"; }, action: PayloadAction) => { type: "raw"; content: { type: "file"; value: { src: string; content: Blob; }; }; }; clearFormBodyKey: (state: { type: "form"; content: { [x: string]: { type: "file"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }; } | { type: "file[]"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }[]; } | { type: "string"; value?: string | undefined; } | undefined; }; } | { type: "raw"; content: { type: "file"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }; } | { type: "file[]"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }[]; } | { type: "string"; value?: string | undefined; } | undefined; } | { type: "empty"; }, action: PayloadAction) => void; setStringFormBody: (state: { type: "form"; content: { [x: string]: { type: "file"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }; } | { type: "file[]"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }[]; } | { type: "string"; value?: string | undefined; } | undefined; }; } | { type: "raw"; content: { type: "file"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }; } | { type: "file[]"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }[]; } | { type: "string"; value?: string | undefined; } | undefined; } | { type: "empty"; }, action: PayloadAction<{ key: string; value: string; }>) => { type: "form"; content: { [x: string]: { type: "file"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }; } | { type: "file[]"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }[]; } | { type: "string"; value?: string | undefined; } | undefined; }; }; setFileFormBody: (state: { type: "form"; content: { [x: string]: { type: "file"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }; } | { type: "file[]"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }[]; } | { type: "string"; value?: string | undefined; } | undefined; }; } | { type: "raw"; content: { type: "file"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }; } | { type: "file[]"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }[]; } | { type: "string"; value?: string | undefined; } | undefined; } | { type: "empty"; }, action: PayloadAction<{ key: string; value: FileContent["value"]; }>) => { type: "form"; content: { [x: string]: { type: "file"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }; } | { type: "file[]"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }[]; } | { type: "string"; value?: string | undefined; } | undefined; }; } | { type: "form"; content: { [x: string]: { type: "file"; value: { src: string; content: Blob; }; }; }; }; setFileArrayFormBody: (state: { type: "form"; content: { [x: string]: { type: "file"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }; } | { type: "file[]"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }[]; } | { type: "string"; value?: string | undefined; } | undefined; }; } | { type: "raw"; content: { type: "file"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }; } | { type: "file[]"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }[]; } | { type: "string"; value?: string | undefined; } | undefined; } | { type: "empty"; }, action: PayloadAction<{ key: string; value: FileArrayContent["value"]; }>) => { type: "form"; content: { [x: string]: { type: "file"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }; } | { type: "file[]"; value: { src: string; content: { size: number; type: string; arrayBuffer: () => Promise; bytes: () => Promise>; slice: (start?: number, end?: number, contentType?: string) => Blob; stream: () => ReadableStream>; text: () => Promise; }; }[]; } | { type: "string"; value?: string | undefined; } | undefined; }; } | { type: "form"; content: { [x: string]: { type: "file[]"; value: { src: string; content: Blob; }[]; }; }; }; }, "body", "body", import("@reduxjs/toolkit").SliceSelectors>; export declare const clearRawBody: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"body/clearRawBody">, setStringRawBody: import("@reduxjs/toolkit").ActionCreatorWithPayload, setFileRawBody: import("@reduxjs/toolkit").ActionCreatorWithPayload<{ src: string; content: Blob; }, "body/setFileRawBody">, clearFormBodyKey: import("@reduxjs/toolkit").ActionCreatorWithPayload, setStringFormBody: import("@reduxjs/toolkit").ActionCreatorWithPayload<{ key: string; value: string; }, "body/setStringFormBody">, setFileFormBody: import("@reduxjs/toolkit").ActionCreatorWithPayload<{ key: string; value: FileContent["value"]; }, "body/setFileFormBody">, setFileArrayFormBody: import("@reduxjs/toolkit").ActionCreatorWithPayload<{ key: string; value: FileArrayContent["value"]; }, "body/setFileArrayFormBody">; declare const _default: import("redux").Reducer; export default _default;