import type { RestRequestFn, RestRequestSchema } from "./types.js"; /** * Parameters for creating an AlchemyRestClient instance. */ export type AlchemyRestClientParams = { /** API key for Alchemy authentication */ apiKey?: string; /** JWT token for Alchemy authentication */ jwt?: string; /** Custom URL (optional - defaults to Alchemy's chain-agnostic URL, but can be used to override it) */ url?: string; /** Custom headers to be sent with requests */ headers?: HeadersInit; }; /** * A client for making requests to Alchemy's non-JSON-RPC endpoints. */ export declare class AlchemyRestClient { private readonly url; private readonly headers; /** * Creates a new instance of AlchemyRestClient. * * @param {AlchemyRestClientParams} params - The parameters for configuring the client, including API key, JWT, custom URL, and headers. */ constructor({ apiKey, jwt, url, headers }: AlchemyRestClientParams); /** * Makes an HTTP request to an Alchemy non-JSON-RPC endpoint. * * @param {RestRequestFn} params - The parameters for the request * @returns {Promise} The response from the request */ request: RestRequestFn; }