import { EditContextType } from "../client/editContext";
export type ExecutionResult<T> = {
    type: "success";
    response: Response;
    data: T;
} | {
    type: "error";
    response: Response;
};
export declare function executeSearch({ query, editContext, maxResults, index, rootItemIds, skipValidation, }: {
    query: string;
    editContext: EditContextType;
    maxResults: number;
    index: string;
    rootItemIds?: string[];
    skipValidation?: boolean;
}): Promise<ExecutionResult<unknown>>;
