import { Q as QueryParams } from './shared/zap.81717526.mjs'; import 'zod'; /** * Axios Compatibility Layer * * Bu dosya axios ile 100% uyumluluk için tasarlandı. * Axios'un generic tip sistemi nedeniyle bazı yerlerde `unknown` kullanılır. * Bu, 3rd-party compatibility layer için kabul edilebilir bir durumdur. */ type Method = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH'; interface AxiosRequestConfig { url?: string; method?: Method; baseURL?: string; headers?: Record; params?: QueryParams; data?: T; timeout?: number; responseType?: 'json' | 'text' | 'arraybuffer' | 'stream'; validateStatus?: (status: number) => boolean; transformRequest?: Array<(data: unknown, headers: Record) => unknown> | ((data: unknown, headers: Record) => unknown); transformResponse?: Array<(data: unknown, headers: Headers) => unknown> | ((data: unknown, headers: Headers) => unknown); onUploadProgress?: (e: { loaded: number; total: number; }) => void; onDownloadProgress?: (e: { loaded: number; total: number; }) => void; signal?: AbortSignal; } interface AxiosResponse { data: T; status: number; statusText: string; headers: Headers; config: AxiosRequestConfig; request: Request; } declare class AxiosError extends Error { name: string; readonly config: AxiosRequestConfig; readonly code?: string; readonly request?: Request; readonly response?: AxiosResponse; readonly isAxiosError = true; constructor(message: string, config: AxiosRequestConfig, code?: string, request?: Request, response?: AxiosResponse); toJSON(): { name: string; message: string; code: string | undefined; }; } declare class CancelToken { promise: Promise; reason?: string; controller: AbortController; constructor(executor: (cancel: (reason?: string) => void) => void); static source(): { token: CancelToken; cancel: (reason?: string) => void; }; } type Fulfilled = (value: T) => T | Promise; type Rejected = (error: unknown) => unknown; declare class InterceptorManager { private handlers; use(fulfilled?: Fulfilled, rejected?: Rejected): number; eject(id: number): void; run(value: T, reverse?: boolean): Promise; } interface AxiosLikeInstance { (config: AxiosRequestConfig): Promise; (url: string, config?: AxiosRequestConfig): Promise; request(config: AxiosRequestConfig): Promise>; get(url: string, config?: AxiosRequestConfig): Promise>; delete(url: string, config?: AxiosRequestConfig): Promise>; head(url: string, config?: AxiosRequestConfig): Promise>; options(url: string, config?: AxiosRequestConfig): Promise>; post(url: string, data?: D, config?: AxiosRequestConfig): Promise>; put(url: string, data?: D, config?: AxiosRequestConfig): Promise>; patch(url: string, data?: D, config?: AxiosRequestConfig): Promise>; create(defaults?: AxiosRequestConfig): AxiosLikeInstance; defaults: AxiosRequestConfig; interceptors: { request: InterceptorManager; response: InterceptorManager; }; CancelToken: typeof CancelToken; isCancel: (err: unknown) => boolean; } declare function createAxiosCompatInstance(defaults?: AxiosRequestConfig): AxiosLikeInstance; declare const axiosCompat: AxiosLikeInstance; declare const createAxiosCompat: typeof createAxiosCompatInstance; export { AxiosError, CancelToken, axiosCompat as axios, axiosCompat, createAxiosCompat as create, createAxiosCompat, axiosCompat as default }; export type { AxiosLikeInstance, AxiosRequestConfig, AxiosResponse, Method };