Public declaration syntax from forge-ts/packages/forge-tool/src/error.ts Original source SHA-256: d242d4eda016a543d53ad7472c8bf988ea4f5e23ddf2b014064021f5fd4f5dca Function bodies and constant values are omitted. This is not the complete implementation. Source line 16 export const ForgeToolErrorCode /* type inferred in source */; Source line 32 export type ForgeToolErrorCodeType = (typeof ForgeToolErrorCode)[keyof typeof ForgeToolErrorCode]; Source line 47 export class ForgeToolError extends Error { readonly code: ForgeToolErrorCodeType; readonly toolName?: string; static toolNotFound(name: string): ForgeToolError; static executionFailed(name: string, reason: string): ForgeToolError; static approvalDenied(name: string, reason: string): ForgeToolError; static schemaValidation(name: string, path: string, reason: string): ForgeToolError; static invalidTier(name: string, expected: string, actual: string): ForgeToolError; static registryError(reason: string): ForgeToolError; }