mono/packages/search/lib/html.d.ts
2025-03-11 11:28:14 +01:00

31 lines
1.2 KiB
TypeScript

import { AxiosRequestConfig } from "axios";
import { Browser } from 'puppeteer';
import * as puppeteer from 'puppeteer';
import { LocalResult } from './map_types';
export declare const STATS_SUFFIX = "_stats.json";
export declare const SESSION_EVENTS_SUFFIX = "_session.json";
export declare const TRACE_SUFFIX = "_trace.json";
export declare var scope: Scope;
export declare const extractEmail: (input: string) => string | null;
export declare const meta: (loc: LocalResult, options: any) => Promise<void>;
export declare const isValidUrl: (url: any) => boolean;
export declare const parse: (url: string, config: AxiosRequestConfig, options: any) => Promise<{}>;
export declare const getScope: (cliArgs?: any) => Scope;
export declare function capture_responses(scope: Scope, page: puppeteer.Page): Promise<void>;
export declare class Scope {
browser: Browser;
context: any;
page: puppeteer.Page;
args: any;
requests: any[];
responses: any[];
eventBeacons: any[];
mutationBeacons: any[];
sessionSuffix: string;
onResponse: any;
onRequest: any;
init(): Promise<void>;
}
export declare const body: (url: string) => Promise<unknown>;
export declare const contactUrl: (url: any) => Promise<void>;