import { WebmateAPIClient } from "../webmate-api-client"; import { WebmateAPISession } from "../webmate-api-session"; import { WebmateAuthInfo } from "../webmate-auth-info"; import { WebmateEnvironment } from "../webmate-environment"; import { ProjectId, TestRunId } from "../types"; import { TestMail, TestMailAccount, TestMailAddress } from "./mail-test-types"; import { Observable } from "rxjs"; /** * Facade to webmate's MailTest subsystem. */ export declare class MailTestClient { private session; private apiClient; private testMailAddress; constructor(session: WebmateAPISession); /** * Create a TestMail that can be used in a TestRun. * * @param projectId Id of Project. * @param testRunId Id of TestRun. * @return email address associated with project and testrun. */ createTestMailAddress(projectId: ProjectId, testRunId: TestRunId): Observable; /** * Get emails for the test mail address in the given TestRun and project. * * @param projectId Project id. * @param testRunId Id of TestRun. * @return list of TestMails */ getMailsInTestRun(projectId: ProjectId, testRunId: TestRunId): Observable>; } export declare class MailTestApiClient extends WebmateAPIClient { private createTestMailAddressInProjectTemplate; constructor(authInfo: WebmateAuthInfo, environment: WebmateEnvironment); createTestMailAddressInProject(projectId: ProjectId, testRunId: TestRunId): Observable; }