UNPKG

okai

Version:

AI-powered code generation tool for ServiceStack Apps. Generate TypeScript data models, C# APIs, migrations, and UI components from natural language prompts using LLMs.

60 lines 2.62 kB
import type { MetadataType, MetadataTypes } from "./types"; export declare function plural(word: string, amount?: number): string; export declare function indentLines(src: string, indent?: string): string; export declare function requestKey(date: Date): string; export declare function acceptedKey(date: Date): string; export declare function chatKey(date: Date): string; export declare function timestampKey(date: Date): string; export declare function trimStart(str: string, chars?: string): string; export declare function leftPart(s: string, needle: string): string; export declare function rightPart(s: string, needle: string): string; export declare function lastLeftPart(s: string, needle: string): string; export declare function lastRightPart(s: string, needle: string): string; export declare function splitCase(t: string): string; export declare function pick(o: any, keys: string[]): {}; export declare function appendQueryString(url: string, args: any): string; export declare function trimEnd(s: string, c: string): string; export declare function refCount(t: MetadataType): number; export declare function getGroupName(ast: MetadataTypes): string; export declare function toPascalCase(s?: string): string; export declare function toCamelCase(s?: string): string; export declare function camelToKebabCase(str: string): string; export declare function replaceMyApp(input: string, projectName: string): string; export type ErrorResponseType = null | "RefreshTokenException"; export declare class ResponseStatus { constructor(init?: Partial<ResponseStatus>); errorCode?: string; message?: string; stackTrace?: string; errors?: ResponseError[]; meta?: { [index: string]: string; }; } export declare class ResponseError { constructor(init?: Partial<ResponseError>); errorCode?: string; fieldName?: string; message?: string; meta?: { [index: string]: string; }; } export declare class ErrorResponse { constructor(init?: Partial<ErrorResponse>); type?: ErrorResponseType; responseStatus?: ResponseStatus; } export declare function createError(errorCode: string, message: string, fieldName?: string): ErrorResponse; export declare function isBinary(contentType: string): boolean; export declare function withAliases(icons: { [name: string]: string; }, aliases: { [name: string]: string[]; }): { [name: string]: string; }; export declare function isCloudflareWorker(): boolean; export declare function parseJsObject(js: string): any; export declare function safeJsObject(jsStr: string): any; //# sourceMappingURL=utils.d.ts.map