@promptbook/markdown-utils
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
19 lines (18 loc) • 768 B
TypeScript
import type { Promisable } from 'type-fest';
import type { string_markdown, string_markdown_text, string_title } from '../../types/typeAliases';
import type { SearchEngine } from '../SearchEngine';
import type { SearchResult } from '../SearchResult';
/**
* A search engine implementation that uses the Google Custom Search JSON API.
*
* @private <- TODO: !!!! Export via some package
*/
export declare class GoogleSearchEngine implements SearchEngine {
get title(): string_title & string_markdown_text;
get description(): string_markdown;
/**
* @see https://developers.google.com/custom-search/v1/overview
*/
checkConfiguration(): Promisable<void>;
search(query: string, options?: Record<string, unknown>): Promise<SearchResult[]>;
}