Public declaration syntax from forge-ts/packages/forge-generate/src/error.ts Original source SHA-256: 0e35d8572112c85b8729523f20241e521acf055bdda35f706e2e09eea5a01b56 Function bodies and constant values are omitted. This is not the complete implementation. Source line 16 export const ForgeGenerateErrorCode /* type inferred in source */; Source line 32 export type ForgeGenerateErrorCodeType = (typeof ForgeGenerateErrorCode)[keyof typeof ForgeGenerateErrorCode]; Source line 48 export class ForgeGenerateError extends Error { readonly code: ForgeGenerateErrorCodeType; readonly model?: string; static modelError(model: string, reason: string): ForgeGenerateError; static schemaViolation(model: string, path: string, reason: string): ForgeGenerateError; static stepLimitReached( stepsCompleted: number, limit: number, totalTokens: number ): ForgeGenerateError; static streamInterrupted( model: string, chunksReceived: number, reason: string ): ForgeGenerateError; static noResponse(model: string, messagesCount: number): ForgeGenerateError; static deserializationFailed( model: string, targetType: string, reason: string ): ForgeGenerateError; }