Public declaration syntax from forge-ts/packages/forge-collab/src/error.ts Original source SHA-256: 94621ea65ea54ecc0dfc855253b9195bb89e7f9abf75ebb9d65e5020130744a0 Function bodies and constant values are omitted. This is not the complete implementation. Source line 18 export const CollabErrorCode /* type inferred in source */; Source line 48 export type CollabErrorCodeType = (typeof CollabErrorCode)[keyof typeof CollabErrorCode]; Source line 63 export class CollabError extends Error { readonly code: CollabErrorCodeType; static sessionNotFound(sessionId: string): CollabError; static sessionAlreadyActive(sessionId: string): CollabError; static sessionTimedOut(sessionId: string): CollabError; static invalidSessionTransition(from: string, to: string): CollabError; static notAParticipant(agentDid: string, sessionId: string): CollabError; static taskNotFound(taskId: string): CollabError; static taskAlreadyAssigned(taskId: string, assignee: string): CollabError; static capabilityMismatch( taskType: string, agentDid: string, reason: string ): CollabError; static contextKeyNotFound(key: string): CollabError; static contextPermissionDenied(key: string, agentDid: string): CollabError; static interruptRejected(interruptId: string, reason: string): CollabError; static delegationFailed(reason: string): CollabError; static roleViolation( agentDid: string, role: string, action: string ): CollabError; }