import { AnyType, Field, Valued, Operation, Parameter, Type } from "@apexlang/core/model"; /** * Takes an array of ValuedDefintions and returns a string based on supplied params. * @param sep seperator between name and type * @param joinOn string that each ValuedDefintion is joined on * @returns string of format ... */ export declare function mapVals(vd: Valued[], sep: string, joinOn: string): string; /** * Return default value for a FieldDefinition. Default value of objects are instantiated. * @param fieldDef FieldDefinition Node to get default value of */ export declare function defValue(fieldDef: Field): string; export declare function defaultValueForType(type: AnyType): string; /** * returns string in quotes * @param s string to have quotes */ export declare const strQuote: (s: string) => string; /** * returns string of the expanded type of a node * @param type the type node that is being expanded * @param useOptional if the type that is being expanded is optional * @param isReference if the type that is being expanded has a `@ref` annotation */ export declare const expandType: (type: AnyType, useOptional: boolean) => string; /** * Given an array of Operation returns them as functions with their arguments * @param ops */ export declare function opsAsFns(ops: Operation[]): string; /** * returns string of args mapped to their type * @param args Parameter array which is an array of the arguments */ export declare function mapArgs(params: Parameter[]): string; export declare function mapArg(param: Parameter): string; /** * returns if a Apex type is a node * @param o Type which correlates to a Apex Type */ export declare function isNode(o: Type): boolean; export declare function varAccessArg(variable: string, params: Parameter[]): string; //# sourceMappingURL=helpers.d.ts.map