UNPKG

@alleyway/add-tradingview-alerts-tool

Version:
18 lines (17 loc) 1.47 kB
import type { Browser } from "puppeteer-core"; import { ISingleAlertSettings } from "../interfaces.js"; export declare const isXpathVisible: (page: any, selector: string, screenShotOnFail?: boolean) => Promise<any>; export declare const fetchFirstXPath: (page: any, selector: string, timeout?: number, screenshotOnFail?: boolean) => Promise<any>; export declare const takeScreenshot: (page: any, name?: string) => Promise<void>; export declare const minimizeFooterChartPanel: (page: any) => Promise<void>; export declare const convertIntervalForTradingView: (interval: string) => string; export declare const configureInterval: (interval: string, page: any) => Promise<void>; export declare const launchBrowser: (headless: boolean, url?: string) => Promise<Browser>; export declare const login: (page: any, username: any, pass: any, backupCode: any) => Promise<void>; export declare const logout: (page: any) => Promise<void>; export declare const checkForInvalidSymbol: (page: any, symbol: string) => Promise<void>; export declare const navigateToSymbol: (page: any, symbol: string) => Promise<void>; export declare const configureSingleAlertSettings: (page: any, singleAlertSettings: ISingleAlertSettings) => Promise<void>; export declare const clickSubmit: (page: any) => Promise<void>; export declare const clickContinueIfWarning: (page: any) => Promise<void>; export declare const addAlert: (page: any, singleAlertSettings: ISingleAlertSettings) => Promise<void>;