import { SignTransactionContext } from "antelopeql"; import { type GraphQLError, type GraphQLFieldConfig } from "graphql"; export interface AntelopeQLRequest { query: string; operationName?: string | null; variables?: Record | null; } /** * List of Antelope chains. */ declare type ChainsType = "vaulta" | "telos" | "xpr" | "wax" | "jungle" | string; /** * Lists you smart contracts across the various Antelope chains. */ export declare type ContractsType = { [key in ChainsType]?: string[]; }; /** * Enables you to enhance your GraphQL schema to add auxiliary queries and mnutation fields to your API. */ declare type ExtendQueryType = { query?: { [name in string]: GraphQLFieldConfig; }; mutation?: { [name in string]: GraphQLFieldConfig; }; }; export declare type APIOptionsType = { signTransaction?: SignTransactionContext; contracts?: ContractsType; chains?: { [chain_name in ChainsType]: URL | string; }; fetchOptions?: RequestInit; abiFetchOptions?: RequestInit; extendQuery?: ExtendQueryType; }; export declare type AntelopeQLResult = { data?: any; errors?: ReadonlyArray; }; export declare const default_rpc_urls: { [chain in ChainsType]: string | URL; }; export declare function AntelopeQL({ query, variables, operationName }: AntelopeQLRequest, options?: APIOptionsType): Promise; export {};