import type { ApiClient } from "../../api"; import type { ConnectionsPluginProvides } from "../connections"; import { z } from "zod"; export interface ZapierFetchInitOptions extends RequestInit { /** @deprecated Use `connection` instead. */ connectionId?: string | number; connection?: string | number; /** @deprecated Use `connection` instead. */ authenticationId?: string | number; callbackUrl?: string; /** Maximum seconds to wait for a response, subject to a server-side limit. */ maxTime?: number; } /** * Fetch plugin, the primary way to make authenticated HTTP requests through Zapier's Relay service. * Mirrors the native fetch(url, init?) signature with additional Zapier-specific options. */ export declare const fetchPlugin: (sdk: { context: { api: ApiClient; } & ConnectionsPluginProvides["context"]; } & { context: import("../eventEmission").EventEmissionContext; } & { context: { meta: Record; }; }) => { fetch: (url: string | URL, init?: ZapierFetchInitOptions) => Promise; context: { meta: { fetch: { description: string; packages: string[]; categories: string[]; returnType: string; inputParameters: ({ name: string; schema: z.ZodUnion]>; } | { name: string; schema: z.ZodOptional>; headers: z.ZodOptional>; body: z.ZodOptional, z.ZodCustom, z.ZodRecord]>>; connectionId: z.ZodOptional>; connection: z.ZodOptional>; authenticationId: z.ZodOptional>; callbackUrl: z.ZodOptional; maxTime: z.ZodOptional; }, z.core.$strip>>; })[]; }; }; }; }; export type FetchPluginProvides = ReturnType; //# sourceMappingURL=index.d.ts.map