/** * @fileoverview Search Hacker News via Algolia with filtering and pagination. * @module mcp-server/tools/definitions/search-content.tool */ import { z } from '@cyanheads/mcp-ts-core'; import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors'; export declare const searchHn: import("@cyanheads/mcp-ts-core").ToolDefinition>; author: z.ZodOptional; sort: z.ZodDefault>; dateRange: z.ZodOptional; end: z.ZodOptional; }, z.core.$strip>>; minPoints: z.ZodOptional; count: z.ZodDefault; page: z.ZodDefault; view: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ hits: z.ZodArray; url: z.ZodOptional; domain: z.ZodOptional; author: z.ZodString; points: z.ZodOptional; numComments: z.ZodOptional; createdAt: z.ZodString; storyTitle: z.ZodOptional; storyId: z.ZodOptional; text: z.ZodOptional; highlights: z.ZodOptional; text: z.ZodOptional; matchedWords: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>>; query: z.ZodString; }, z.core.$strip>, readonly [{ readonly reason: "upstream_rejected"; readonly code: JsonRpcErrorCode.InvalidParams; readonly when: "Algolia answered with a 4xx status other than 429 — it rejected the request as built."; readonly recovery: "Check the input values against this schema; the same input fails identically."; readonly thrownBy: "service"; }, { readonly reason: "upstream_rate_limited"; readonly code: JsonRpcErrorCode.RateLimited; readonly when: "Algolia answered with HTTP 429."; readonly recovery: "Wait several seconds before retrying, and call this tool less often."; readonly retryable: true; readonly thrownBy: "service"; }, { readonly reason: "upstream_unavailable"; readonly code: JsonRpcErrorCode.ServiceUnavailable; readonly when: "Algolia answered with a 5xx status."; readonly recovery: "Retry after a short delay; no input change helps while the upstream is down."; readonly retryable: true; readonly thrownBy: "service"; }, { readonly reason: "upstream_html"; readonly code: JsonRpcErrorCode.ServiceUnavailable; readonly when: "Algolia served an HTML error page with a 200 status, which it does under rate limiting or maintenance."; readonly recovery: "Retry after a brief delay; the upstream is throttling or in maintenance."; readonly retryable: true; readonly thrownBy: "service"; }, { readonly reason: "upstream_malformed"; readonly code: JsonRpcErrorCode.ServiceUnavailable; readonly when: "Algolia answered with a 200 status and a body that is not JSON."; readonly recovery: "Retry after a brief delay; no input change helps while the upstream serves this."; readonly retryable: true; readonly thrownBy: "service"; }], { readonly totalHits: z.ZodNumber; readonly page: z.ZodNumber; readonly totalPages: z.ZodNumber; readonly truncated: z.ZodOptional; readonly shown: z.ZodOptional; readonly cap: z.ZodOptional; readonly notice: z.ZodOptional; }>; //# sourceMappingURL=search-content.tool.d.ts.map