/** * Params defines the set of on-chain interchain accounts parameters. The following parameters may be used to disable the controller submodule. */ export interface Controllerv1Params { /** controller_enabled enables or disables the controller submodule. */ controller_enabled?: boolean; } export interface ProtobufAny { "@type"?: string; } export interface RpcStatus { /** @format int32 */ code?: number; message?: string; details?: ProtobufAny[]; } /** * QueryParamsResponse is the response type for the Query/Params RPC method. */ export interface V1QueryParamsResponse { /** params defines the parameters of the module. */ params?: Controllerv1Params; } export type QueryParamsType = Record; export type ResponseFormat = keyof Omit; export interface FullRequestParams extends Omit { /** set parameter to `true` for call `securityWorker` for this request */ secure?: boolean; /** request path */ path: string; /** content type of request body */ type?: ContentType; /** query params */ query?: QueryParamsType; /** format of response (i.e. response.json() -> format: "json") */ format?: keyof Omit; /** request body */ body?: unknown; /** base url */ baseUrl?: string; /** request cancellation token */ cancelToken?: CancelToken; } export type RequestParams = Omit; export interface ApiConfig { baseUrl?: string; baseApiParams?: Omit; securityWorker?: (securityData: SecurityDataType) => RequestParams | void; } export interface HttpResponse extends Response { data: D; error: E; } type CancelToken = Symbol | string | number; export declare enum ContentType { Json = "application/json", FormData = "multipart/form-data", UrlEncoded = "application/x-www-form-urlencoded" } export declare class HttpClient { baseUrl: string; private securityData; private securityWorker; private abortControllers; private baseApiParams; constructor(apiConfig?: ApiConfig); setSecurityData: (data: SecurityDataType) => void; private addQueryParam; protected toQueryString(rawQuery?: QueryParamsType): string; protected addQueryParams(rawQuery?: QueryParamsType): string; private contentFormatters; private mergeRequestParams; private createAbortSignal; abortRequest: (cancelToken: CancelToken) => void; request: ({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise>; } /** * @title ibc/applications/interchain_accounts/controller/v1/controller.proto * @version version not set */ export declare class Api extends HttpClient { /** * No description * * @tags Query * @name QueryParams * @summary Params queries all parameters of the ICA controller submodule. * @request GET:/ibc/apps/interchain_accounts/controller/v1/params */ queryParams: (params?: RequestParams) => Promise>; } export {};