@cosmology/ast
Version:
Cosmos TypeScript AST generation
11 lines (10 loc) • 658 B
TypeScript
import * as t from '@babel/types';
import { ProtoService, ProtoServiceMethodInfo } from '@cosmology/types';
import { GenericParseContext } from '../../../encoding';
export declare const getUrlTemplateString: (url: string) => {
strs: any[];
atEnd: boolean;
};
export declare function makeTemplateTag(info: ProtoServiceMethodInfo, noLeadingSlash?: boolean): t.TemplateLiteral;
export declare const createLCDClient: (context: GenericParseContext, service: ProtoService) => t.ExportNamedDeclaration;
export declare const createAggregatedLCDClient: (context: GenericParseContext, services: ProtoService[], clientName: string) => t.ExportNamedDeclaration;