UNPKG

@cosmology/ast

Version:
23 lines (22 loc) 875 B
import * as ast from "@babel/types"; import { ProtoServiceMethod } from "@cosmology/types"; import { GenericParseContext } from "../../encoding"; /** * * @param context * @param service * @param methodKey e.g. "balance" * @param helperCreatorName e.g. "createGetBalance" * @returns */ export declare function createQueryHelperCreator(context: GenericParseContext, service: ProtoServiceMethod, svcKey: string, methodKey?: string, helperCreatorName?: string): ast.ExportNamedDeclaration; /** * * @param context * @param service * @param methodKey e.g. "balance" * @param helperCreatorName e.g. "createGetBalance" * @param hookName e.g. "useGetBalance" * @returns */ export declare function createQueryHooks(context: GenericParseContext, service: ProtoServiceMethod, methodKey?: string, helperCreatorName?: string, hookName?: string): ast.ExportNamedDeclaration;