import { Account, Address, Chain, ParseAccount, Prettify, RpcSchema, Transport } from "viem"; import { IndexRpcSchema } from "../methods/index/indexRpcSchema.js"; import { AvalancheCoreClient, CreateAvalancheCoreClientErrorType } from "./createAvalancheCoreClient.js"; import { IndexAPIActions } from "./decorators/indexApi.js"; import { AvalancheClientConfig } from "./types/createAvalancheClient.js"; export type IndexApiClientConfig = Prettify & { clientType: "indexPChainBlock" | "indexCChainBlock" | "indexXChainBlock" | "indexXChainTx"; }>; export type IndexApiClient = Prettify>; export type CreateIndexApiClientErrorType = CreateAvalancheCoreClientErrorType; /** * Creates an Index API Client with a given transport configured for a Chain. * * The Index API Client is an interface to interact with the Index API through Avalanche-specific JSON-RPC API methods. * * @param parameters - {@link IndexApiClientConfig} * @returns An Index API Client. {@link IndexApiClient} * * @example * ```ts * import { createIndexApiClient} from '@avalanche-sdk/client' * import { avalanche } from '@avalanche-sdk/client/chains' * * const client = createIndexApiClient({ * chain: avalanche, * transport: { * type: "http", * }, * clientType: "indexPChainBlock", * }) * * // Get container by ID for P-Chain block * const block = await client.getContainerByID({ * id: '0x1', * encoding: 'hex' * }) * ``` */ export declare function createIndexApiClient(parameters: IndexApiClientConfig): IndexApiClient, rpcSchema>; //# sourceMappingURL=createIndexApiClient.d.ts.map