import { AxiomV2Callback, AxiomV2ComputeQuery, QueryBuilderBase } from "@axiom-crypto/circuit"; import { Subquery } from "@axiom-crypto/tools"; import { AxiomV2QueryOptions } from "../types"; import { QueryBuilderClientConfig, QueryBuilderClientInternalConfig, BuiltQueryV2 } from "./types"; /** * QueryBuilderClient builds queries that can be sent to the deployed AxiomV2Query contract on-chain. */ export declare class QueryBuilderClient extends QueryBuilderBase { readonly config: QueryBuilderClientInternalConfig; protected builtQuery?: BuiltQueryV2; protected callback?: AxiomV2Callback; protected options: AxiomV2QueryOptions; constructor(config: QueryBuilderClientConfig, dataQuery?: Subquery[], computeQuery?: AxiomV2ComputeQuery, callback?: AxiomV2Callback, options?: AxiomV2QueryOptions); protected configure(config: QueryBuilderClientConfig): QueryBuilderClientInternalConfig; build(validate?: boolean): Promise; /** * Gets the callback information * @returns The current callback information */ getCallback(): AxiomV2Callback | undefined; /** * Gets the current Query options * @returns The current Query options */ getOptions(): AxiomV2QueryOptions; /** * Gets the built Query if it exists * @returns The built Query or undefined if it has not yet been built */ getBuiltQuery(): BuiltQueryV2 | undefined; setCallback(callback: AxiomV2Callback): void; setOptions(options: AxiomV2QueryOptions): AxiomV2QueryOptions; clearOptions(): void; validate(): Promise; protected unsetBuiltQuery(): void; /** * Gets a queryId for a built Query * @returns uint256 queryId */ getQueryId(caller?: string): Promise; protected calculateUserSalt(): string; protected handleCallback(callback: AxiomV2Callback): AxiomV2Callback; protected validateCallback(): Promise; } //# sourceMappingURL=queryBuilderClient.d.ts.map