import { Account, Address, Chain, ParseAccount, Prettify, RpcSchema, Transport } from "viem"; import { AvalancheBaseClient, AvalancheBaseClientConfig, CreateAvalancheBaseClientErrorType, Extended } from "./createAvalancheBaseClient.js"; import { AvalancheTransportConfig, ClientType } from "./types/types.js"; export type AvalancheCoreClientConfig = Prettify, "transport"> & { transport: AvalancheTransportConfig; apiKey?: string; rlToken?: string; clientType?: ClientType | undefined; }>; export type AvalancheCoreClient = Prettify>; export type CreateAvalancheCoreClientErrorType = CreateAvalancheBaseClientErrorType; /** * Creates an Avalanche Core Client with a given transport configured for a Chain. * * The Avalanche Core Client is a base client that can be used to create other * Avalanche clients or make rpc requests. * * @param parameters - {@link AvalancheCoreClientConfig} * @returns A Avalanche Core Client. {@link AvalancheCoreClient} * * @example * ```ts * import { createAvalancheCoreClient } from '@avalanche-sdk/client' * import { avalanche } from '@avalanche-sdk/client/chains' * * const client = createAvalancheCoreClient({ * chain: avalanche, * transport: { type: "http" }, * }) * * const block = await client.getBlock("latest") * ``` */ export declare function createAvalancheCoreClient(parameters: AvalancheCoreClientConfig): AvalancheCoreClient, rpcSchema, extended>; //# sourceMappingURL=createAvalancheCoreClient.d.ts.map