/** * GitHub pull request identifier structure */ export interface PRIdentifier { owner: string; repo: string; number: number; } /** * MCP-compliant cursor-based pagination * Reference: https://modelcontextprotocol.io/specification/2025-06-18/server/utilities/pagination */ export interface PaginatedResult { items: T[]; nextCursor?: string; } export type ErrorCategory = "user" | "api" | "logical" | "network" | "authentication" | "authorization" | "rate_limit" | "timeout" | "unknown"; /** * Standardized error format for tool responses */ export interface ToolError { error: string; category: ErrorCategory; details?: Record; suggestion?: string; retry_after?: number; documentation_url?: string; } export type Result = { success: true; data: T; } | { success: false; error: E; }; //# sourceMappingURL=index.d.ts.map