Files

20 lines
701 B
TypeScript
Raw Permalink Normal View History

import { EventContext } from "./event-context";
import { EventMapper } from "../event-mapper";
import { ISearchResult } from "../@types/search";
2026-09-12 23:57:45 -04:00
export declare class SearchResult {
readonly rank: number;
readonly context: EventContext;
/**
* Create a SearchResponse from the response to /search
*/
static fromJson(jsonObj: ISearchResult, eventMapper: EventMapper): SearchResult;
/**
* Construct a new SearchResult
*
* @param rank - where this SearchResult ranks in the results
* @param context - the matching event and its
* context
*/
constructor(rank: number, context: EventContext);
}
//# sourceMappingURL=search-result.d.ts.map