import { MessageAttachment } from "@slack/types"; import { IncomingWebhookDefaultArguments, IncomingWebhookResult, IncomingWebhookSendArguments } from "@slack/webhook"; export interface SlackRunnerOptions { ciProvider: string; vcsRoot: string; reportDir: string; videoDir: string; screenshotDir: string; customUrl?: string; onlyFailed?: boolean; verbose?: boolean; customText?: string; } export interface CiEnvVars { CI_SHA1: string | undefined; CI_BRANCH: string | undefined; CI_USERNAME: string | undefined; CI_BUILD_URL: string | undefined; CI_BUILD_NUM: string | undefined; CI_PULL_REQUEST: string | undefined; CI_PROJECT_REPONAME: string | undefined; CI_PROJECT_USERNAME: string | undefined; JOB_NAME: string | undefined; CIRCLE_PROJECT_ID: string | undefined; } interface ReportStatistics { totalSuites: any; totalTests: any; totalPasses: any; totalFailures: any; totalDuration: any; reportFile: string[]; status: string; } export declare const slackRunner: ({ ciProvider, vcsRoot, reportDir, videoDir, screenshotDir, customUrl, onlyFailed, customText, }: SlackRunnerOptions) => Promise; export declare const testables: { resolveCIProvider: (ciProvider?: string | undefined) => Promise; getCommitUrl: ({ vcsRoot, ciEnvVars, }: { vcsRoot: string; ciEnvVars: CiEnvVars; }) => Promise; getArtefactUrl: ({ vcsRoot, ciEnvVars, ciProvider, customUrl, }: { vcsRoot: string; ciEnvVars: CiEnvVars; ciProvider: string; customUrl: string; }) => Promise; buildHTMLReportURL: ({ reportDir, artefactUrl, }: { reportDir: string; artefactUrl: string; }) => Promise; getScreenshotLinks: ({ artefactUrl, screenshotDir, }: { artefactUrl: string; screenshotDir: string; }) => Promise; getVideoLinks: ({ artefactUrl, videosDir, }: { artefactUrl: string; videosDir: string; }) => Promise; prChecker: (ciEnvVars: CiEnvVars) => Promise; webhookInitialArgs: ({ status, ciEnvVars, commitUrl, prLink, }: { status: string; ciEnvVars: CiEnvVars; commitUrl?: string | undefined; prLink?: string | undefined; }) => Promise; webhookSendArgs: ({ argsWebhookSend, messageAttachments, }: { argsWebhookSend: IncomingWebhookSendArguments; messageAttachments: MessageAttachment[]; }) => Promise; attachmentReports: ({ reportStatistics, reportHTMLUrl, ciEnvVars, customText, }: { reportStatistics: ReportStatistics; reportHTMLUrl: string; ciEnvVars: CiEnvVars; customText?: string | undefined; }) => Promise; attachmentsVideoAndScreenshots: ({ status, videoAttachmentsSlack, screenshotAttachmentsSlack, }: { status: string; videoAttachmentsSlack: string; screenshotAttachmentsSlack: string; }) => Promise<{ text: string; color: string; } | { text?: undefined; color?: undefined; }>; getTestReportStatus: (reportDir: string) => Promise<{ totalSuites: any; totalTests: any; totalPasses: any; totalFailures: any; totalDuration: any; reportFile: string[]; status: any; }>; getHTMLReportFilename: (reportDir: string) => Promise; }; export {};