import { Chain, Transport } from "viem"; import { AvalancheCoreClient as Client } from "../../clients/createAvalancheCoreClient.js"; import { GetSubnetParameters, GetSubnetReturnType } from "./types/getSubnet.js"; /** * Get information about a subnet. * * - Docs: https://build.avax.network/docs/api-reference/p-chain/api#platformgetsubnet * * @param client - The client to use. {@link AvalancheCoreClient} * @param params - The subnet ID {@link GetSubnetParameters} * @returns Information about the subnet. {@link GetSubnetReturnType} * * @example * ```ts * import { createAvalancheCoreClient } from '@avalanche-sdk/client' * import { avalanche } from '@avalanche-sdk/client/chains' * import { getSubnet } from '@avalanche-sdk/client/methods/pChain' * * const client = createAvalancheCoreClient({ * chain: avalanche, * transport: { * type: "http", * url: "", * }, * }) * * const subnet = await getSubnet(client, { * subnetID: "11111111111111111111111111111111LpoYY" * }) * ``` */ export declare function getSubnet(client: Client, params: GetSubnetParameters): Promise; //# sourceMappingURL=getSubnet.d.ts.map