import z, { ZodRawShape } from "zod"; import { SessionReponse } from "./schemas"; import { DataCompression, ResultsFormat } from "./constants"; import { TypeMap } from "apache-arrow"; export declare const parseResponse: >(res: Response, schema: T) => Promise>; export declare const isSessionInFinalState: (session: SessionReponse) => boolean; export declare const backoffRetry: (attempts: number) => number; type RetryOptions = { timeout: number; retryOn: (attempts: number, error: Error | null, result: T | null) => boolean | Promise; retryDelay: (attempts: number) => number; }; export declare const asyncOperationWithRetry: (operation: (signal: AbortSignal) => Promise, options: RetryOptions) => Promise; export declare const RETRYABLE_HTTP_STATUS_CODES: number[]; export declare const NUM_RESLIENCY_RETRIES = 3; export declare const shouldRetryForResiliency: (attempt: number, error: Error | null, result: { status: number; } | null) => boolean; export declare const toWsUrl: (url: string) => string; export declare const decompressPayload: (payload: Buffer, compression: DataCompression) => Promise; export declare const decodeResults: (results: Buffer, encoding: ResultsFormat) => import("apache-arrow").Table; export declare const combineAbortSignals: (...signals: (AbortSignal | null | undefined)[]) => AbortSignal; export {};