import { PlacementGroupSlot } from '../types/placement_groups.js'; import { ShelbyIndexerClient } from '../operations/index.js'; import { Placement_Group_Slots_Bool_Exp, Placement_Group_Slots_Order_By } from '../operations/generated/sdk.js'; import { ShelbyClientConfig } from './ShelbyClientConfig.js'; import '@aptos-labs/ts-sdk'; import 'graphql-request'; import 'graphql'; import '../networks.js'; /** * Client for interacting with placement groups on the Shelby network. * * This client provides methods to query placement group slots from the indexer. */ declare class ShelbyPlacementGroupClient { readonly indexer: ShelbyIndexerClient; /** * Creates a new ShelbyPlacementGroupClient. * * @param config - The client configuration object. * * @example * ```typescript * const pgClient = new ShelbyPlacementGroupClient({ * network: Network.SHELBYNET, * }); * ``` */ constructor(config: ShelbyClientConfig); /** * Retrieves placement group slots from the indexer. * * @param params.where (optional) - The where clause to filter slots by. * @param params.pagination (optional) - The pagination options. * @param params.orderBy (optional) - The order by clause to sort slots by. * @returns The placement group slots that match the filter. * * @example * ```typescript * // Get all active slots * const slots = await client.getPlacementGroupSlots({ * where: { status: { _eq: "active" } }, * }); * ``` */ getPlacementGroupSlots(params: { where?: Placement_Group_Slots_Bool_Exp; pagination?: { limit?: number; offset?: number; }; orderBy?: Placement_Group_Slots_Order_By; }): Promise; /** * Retrieves the total count of placement group slots from the indexer. * * @param params.where (optional) - The where clause to filter slots by. * @returns The count of placement group slots that match the filter. * * @example * ```typescript * // Get count of active slots * const count = await client.getPlacementGroupSlotsCount({ * where: { status: { _eq: "active" } }, * }); * ``` */ getPlacementGroupSlotsCount(params: { where?: Placement_Group_Slots_Bool_Exp; }): Promise; } export { ShelbyPlacementGroupClient };