export interface bufferControlType { getBuffer: () => string; setBuffer: (data: string) => void; add: (data: string) => void; } export interface timeOutControlType { getTime: () => ReturnType | undefined; setTime: ({ id }: { id: ReturnType; }) => void; clearTime: () => void; } export interface stateLocalType { getState: () => Record; getStateOne: (key: string) => unknown | undefined; setState: (newState: Record) => void; clearState: () => void; clearStateByKey: (key: string) => void; hasStateByKey: (key: string) => boolean; } export interface condicionalExtract { key: string; path: string; accumulate?: boolean; condition: string; } export interface extract { key: string; forExtract: string; accumulate?: boolean; } export interface ExtractorsType { defaultExtract: extract[]; conditionalxtractor?: condicionalExtract[]; } export interface BeforeRequestConfig { url: string; headers: Record; body?: Record; } export type BeforeRequestFn = (config: BeforeRequestConfig) => Promise; export interface dataFetchType = Record, B extends Record = Record> { url: string; headers?: H; timeOut?: number; onDone?: (finalData: { chunks: Record[]; }) => void; body?: B; extractors?: ExtractorsType; beforeRequest?: BeforeRequestFn; accumulate?: boolean; } export interface serializeType { buffer: bufferControlType; state: stateLocalType; } export interface timeoutType { timeOutId: timeOutControlType; bodyReader: ReadableStreamDefaultReader>; } export interface streamIaType { body: ReadableStream; encodeBytes: boolean | undefined; } export interface FetchOptions { encodeBytes?: boolean; method?: string; } export declare enum SystemError { EACCES = "EACCES", EADDRINUSE = "EADDRINUSE", ECONNREFUSED = "ECONNREFUSED", ECONNRESET = "ECONNRESET", EEXIST = "EEXIST", EISDIR = "EISDIR", EMFILE = "EMFILE", ENOENT = "ENOENT", ENOTDIR = "ENOTDIR", ENOTEMPTY = "ENOTEMPTY", ENOTFOUND = "ENOTFOUND", EPERM = "EPERM", EPIPE = "EPIPE", ETIMEDOUT = "ETIMEDOUT" } export declare const systemErrorDescription: Record; //# sourceMappingURL=type.d.ts.map