import { AnyType, Context, Field, Valued, Operation, Parameter, Annotated, Interface } 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 delimiter string that each ValuedDefintion is joined on * @returns string of format ... */ export declare function mapVals(vd: Valued[], sep: string, delimiter: string, translate?: (named: string) => string | undefined): string; /** * Return default value for a Field. Default value of objects are instantiated. * @param fieldDef Field Node to get default value of */ export declare function defValue(fieldDef: Field): string; export declare function returnPointer(type: AnyType): string; export declare function returnShare(type: AnyType): string; export declare function defaultValueForType(context: Context, type: AnyType, packageName?: string): string; /** * returns string in quotes * @param s string to have quotes */ export declare const strQuote: (s: string) => string; export declare function setExpandStreamPattern(pattern: string): void; /** * 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, packageName?: string | undefined, useOptional?: boolean, translate?: ((named: string) => string | undefined) | undefined) => string; export declare function fieldName(annotated: Annotated, name: string): string; export declare function methodName(annotated: Annotated, name: string): string; export declare function parameterName(annotated: Annotated, name: string): string; /** * Given an array of OperationDefintion returns them as functions with their arguments * @param ops */ export declare function opsAsFns(context: Context, ops: Operation[]): string; /** * returns string of args mapped to their type * @param args InputValueDefintion array which is an array of the arguments */ export declare function mapParams(context: Context, args: Parameter[], packageName?: string, translate?: (named: string) => string | undefined): string; export declare function mapParam(context: Context, arg: Parameter, packageName?: string, translate?: (named: string) => string | undefined): string; export declare function varAccessArg(context: Context, variable: string, args: Parameter[]): string; export declare function receiver(iface: Interface): string; //# sourceMappingURL=helpers.d.ts.map