Public declaration syntax from forge-ts/packages/forge-auth/src/error.ts Original source SHA-256: 176c1b1ab4bcf83be292c873d98b7ca7ae9f61cc02fa5cf1b8cabd36467e212c Function bodies and constant values are omitted. This is not the complete implementation. Source line 17 export const ForgeAuthErrorCode /* type inferred in source */; Source line 26 export type ForgeAuthErrorCodeType = (typeof ForgeAuthErrorCode)[keyof typeof ForgeAuthErrorCode]; Source line 46 export class ForgeAuthError extends Error { public readonly code: ForgeAuthErrorCodeType; static tokenExpired(tokenId: string, agentDid: string, expiredAt: string): ForgeAuthError; static insufficientScope( agentDid: string, requiredScope: string, availableScopes: string[] ): ForgeAuthError; static capabilityEscalation( parentDid: string, childDid: string, requested: string, available: string[] ): ForgeAuthError; static delegationDenied( parentDid: string, childDid: string, reason: string ): ForgeAuthError; static invalidToken(reason: string): ForgeAuthError; isExpired(): boolean; isInsufficientScope(): boolean; isCapabilityEscalation(): boolean; isDelegationDenied(): boolean; isInvalidToken(): boolean; }