import type { SpiceflowClient } from './types.ts'; import type { AnySpiceflow } from '../spiceflow.ts'; export declare const isServer: boolean; export declare const isFile: (v: any) => boolean; export declare const hasFile: (obj: Record) => boolean; export declare const createNewFile: (v: File) => File | Promise; export declare const processHeaders: (h: SpiceflowClient.Config["headers"], path: string, options?: RequestInit, headers?: Record) => Record; export interface SSEEvent { event?: string; data: any; id?: string; } export declare class TextDecoderStream extends TransformStream { constructor(); } export declare function isAbortError(error: unknown): error is Error; export declare function streamSSEResponse({ response, map, executeRequest, maxRetries, }: { response: Response; map: (x: SSEEvent) => any; executeRequest?: () => Promise; maxRetries?: number; }): AsyncGenerator; export declare function tryParsingSSEJson(data: string): any; export declare function superjsonDeserialize(data: any): any; export declare function buildQueryString(query: Record | undefined): string; export declare function serializeBody({ body, fetchInit, isGetOrHead, }: { body: any; fetchInit: RequestInit; isGetOrHead: boolean; }): Promise; export declare function parseResponseData({ response, executeRequest, retries, }: { response: Response; executeRequest: () => Promise; retries: number; }): Promise<{ data: any; error: any; }>; export declare function executeWithRetries({ url, fetchInit, fetcher, instance, state, retries, }: { url: string; fetchInit: RequestInit; fetcher: typeof fetch; instance?: AnySpiceflow; state?: any; retries: number; }): Promise; //# sourceMappingURL=shared.d.ts.map