UNPKG

algolia-crawl

Version:

Crawl your site and sync your Algolia search index

13 lines (12 loc) 559 B
import { Page } from "puppeteer"; /** Index objects in Algolia search */ export declare const indexObjects: (objects: Readonly<Record<string, any>>[]) => Promise<import("@algolia/client-search").ChunkedBatchResponse>; export declare const getUrls: (page: Page, _url: string, baseUrl?: string | undefined) => Promise<void>; export declare const crawl: () => Promise<Set<{ objectID: string; url: string; title: string; description?: string | undefined; text?: string | undefined; }>>; export declare const algoliaCrawl: () => Promise<void>;