import { AnyType, Context, Kind, Type, Annotated, Alias, Enum, TypeResolver, Operation, Union, Primitive, Interface } from "@apexlang/core/model"; import { Type as ASTType } from "@apexlang/core/ast"; export declare function isOneOfType(context: Context, types: string[]): boolean; export declare function isHandler(context: Context): boolean; export declare function isService(context: Context): boolean; export declare function hasServiceCode(context: Context): boolean; export declare function hasMethods(iface: Interface): boolean; export declare function hasCode(context: Context): boolean; export declare function isEvents(context: Context): boolean; export declare function isProvider(context: Context): boolean; export declare function noCode(annotated: Annotated): boolean; /** * Determines if a node is a void node * @param t Node that is a Type node */ export declare function isVoid(t: AnyType): boolean; export declare function isNamed(t: AnyType): t is NamedType; /** * Determines if Type Node is a Named node and if its type is not one of the base translation types. * @param t Node that is a Type node */ export declare function isObject(t: AnyType, recurseOption?: boolean): boolean; export declare function isPrimitive(t: AnyType): t is Primitive; export declare function visitNamed(t: AnyType, callback: (name: string) => void): void; export declare const primitives: Set; export declare function formatComment(prefix: string, text: string | undefined, wrapLength?: number): string; export declare function camelCaseTransform(input: string, index: number): string; export declare function camelCaseTransformMerge(input: string, index: number): string; export declare function camelCase(input: string, options?: Options): string; export declare function pascalCaseTransform(input: string, index: number): string; export declare function pascalCaseTransformMerge(input: string): string; export declare function pascalCase(input: string, options?: Options): string; export declare function snakeCase(input: string, options?: Options): string; export declare function dotCase(input: string, options?: Options): string; export interface Options { splitRegexp?: RegExp | RegExp[]; stripRegexp?: RegExp | RegExp[]; delimiter?: string; transform?: (part: string, index: number, parts: string[]) => string; } export declare function noCase(input: string, options?: Options): string; /** * Localized lower case. */ export declare function localeLowerCase(str: string, locale: string): string; /** * Lower case as a function. */ export declare function lowerCase(str: string): string; /** * Capitlizes a given string * @param str string to be capitlized * @returns string with first character capitalized. If empty string returns empty string. */ export declare function capitalize(str: string): string; export declare function uncapitalize(str: string): string; export declare function capitalizeRename(annotated: Annotated, str: string): string; export declare function renamed(annotated: Annotated, defaultVal?: string): string | undefined; export declare function interfaceTypeName(iface: Interface): string; export declare function operationTypeName(operation: Operation): string; export declare function operationArgsType(iface: Interface | undefined, operation: Operation, prefix?: string): string; export declare function convertOperationToType(tr: TypeResolver, iface: Interface | undefined, operation: Operation, prefix?: string): Type; export declare function convertUnionToType(tr: TypeResolver, union: Union): Type; export declare function modelToAST(t: AnyType): ASTType; export declare function typeName(t: AnyType): string; export declare function convertArrayToObject(array: T[], keyFunc: (value: T) => string, convert?: (value: T) => D): { [key: string]: D; }; export declare function unwrapKinds(t: AnyType, ...kinds: Kind[]): AnyType; export declare function isKinds(t: AnyType, ...kinds: Kind[]): boolean; export declare function codegenType(t: AnyType): string; declare type NineBox = [NineBoxRow, NineBoxRow, NineBoxRow]; declare type NineBoxRow = [string, string, string]; export declare function generatedHeader(lines: string[], nineBox?: NineBox): string; export declare function inspect(o: any, omit?: string[]): void; declare type NamedType = Enum | Type | Union | Alias; export declare function isRecursiveType(typ: AnyType, seen?: NamedType[]): boolean; export {}; //# sourceMappingURL=utilities.d.ts.map