osr-mono/packages/osr-search/lib/email.d.ts
2025-01-29 17:48:22 +01:00

11 lines
747 B
TypeScript

import { MappingDocumentTransformer, Document } from "@langchain/core/documents";
import { LocalResult } from './map_types';
export declare class HtmlToTextTransformer extends MappingDocumentTransformer {
static lc_name(): string;
constructor(options?: {});
_transformDocument(document: any): Promise<Document<any>>;
}
export declare const cheerioLoader: (url: any) => Promise<import("@langchain/core/documents").DocumentInterface<Record<string, any>>[]>;
export declare const puppeteerLoader: (url: any, headless: any) => Promise<import("@langchain/core/documents").DocumentInterface<Record<string, any>>[]>;
export declare const findEMail: (question: string, url: string, opts: any, location: LocalResult) => Promise<false | any[]>;