import type { HttpClient } from "../httpClient.js"; import type { BatchableRequest, BatchSubRequest } from "../types/shared.js"; import { type FacebookErrorHook } from "../internal/error.js"; export interface BatchRequestOptions { includeHeaders?: boolean; } export interface CreateBatchResourceOptions { onError?: FacebookErrorHook | undefined; } type BatchResponses = { -readonly [K in keyof T]: T[K] extends BatchableRequest ? { status: number; data: R; } : { status: number; data: any; }; }; export declare function createBatchResource(http: HttpClient, options?: CreateBatchResourceOptions): (requests: T, batchOptions?: BatchRequestOptions) => Promise>; export {}; //# sourceMappingURL=createBatchResource.d.ts.map