import { ISearchResult, ISearchResults, MatrixClient } from "matrix-js-sdk/src/matrix";
import { ISearchArgs } from "./indexing/BaseEventIndexManager";
export interface ISeshatSearchResults extends ISearchResults {
    seshatQuery?: ISearchArgs;
    cachedEvents?: ISearchResult[];
    oldestEventFrom?: "local" | "server";
    serverSideNextBatch?: string;
}
export declare function searchPagination(client: MatrixClient, searchResult: ISearchResults): Promise<ISearchResults>;
export default function eventSearch(client: MatrixClient, term: string, roomId?: string, abortSignal?: AbortSignal): Promise<ISearchResults>;
