/** * MCP error code for invalid cursor (Invalid params) */ export declare const INVALID_CURSOR_ERROR_CODE = -32602; /** * Error thrown when cursor is invalid */ export declare class InvalidCursorError extends Error { readonly code = -32602; constructor(message?: string); } /** * Encode position to opaque cursor string. * Uses base64url for URL-safe encoding. */ export declare function encodeCursor(position: number): string; /** * Decode cursor string to position. * Returns null if cursor is invalid. */ export declare function decodeCursor(cursor: string): number | null; /** * Decode cursor string to position, throwing if invalid. * Use this when you want to return MCP-compliant error. */ export declare function decodeCursorOrThrow(cursor: string): number; //# sourceMappingURL=cursor.d.ts.map