import { z } from "zod"; import { fileSourceRequestSchema, fileSourceResponseSchema, listRepositoriesResponseSchema, locationSchema, rangeSchema, repositorySchema, searchRequestSchema, searchResponseSchema } from "./schemas"; export type KeymapType = "default" | "vim"; export type SearchResponse = z.infer; export type SearchResult = SearchResponse["Result"]; export type SearchResultFile = NonNullable[number]; export type SearchResultFileMatch = SearchResultFile["ChunkMatches"][number]; export type SearchResultRange = z.infer; export type SearchResultLocation = z.infer; export type FileSourceRequest = z.infer; export type FileSourceResponse = z.infer; export type ListRepositoriesResponse = z.infer; export type Repository = z.infer; export type SearchRequest = z.infer; export enum SearchQueryParams { query = "query", maxMatchDisplayCount = "maxMatchDisplayCount", }