import { Elysia } from 'elysia'; import type { EdenQueryStoreKey } from '../constraints'; import type { GenericElysiaPlugin } from './types'; /** * Individual request data that can be extracted from a {@link Request} that contains * information about multiple requests. */ export type BatchedRequestData = { /** * The path for this request. */ path: string; /** * The HTTP method for this request. */ method?: string; /** * The body of the request. It may either be JSON or FormData. */ body?: any; /** * The type of the body. */ body_type?: 'formdata' | 'json'; /** * All headers specifically for the request. */ headers?: Headers; /** * Any query parameters for the request. */ query?: URLSearchParams; }; export type BatchPluginOptions = { endpoint?: string; }; /** * This may result in a TS error if you have "declaration": true in your tsconfig. * TS 4118 The type of this node cannot be serialized because its property '[EdenQueryStoreKey]' cannot be serialized. */ export declare function safeBatchPlugin(options?: BatchPluginOptions): (elysia: Elysia) => Elysia; derive: {}; resolve: {}; }>; export declare function batchPlugin(options?: BatchPluginOptions): GenericElysiaPlugin; //# sourceMappingURL=batch.d.ts.map