/** * Cypress support file that exposes and extends cypress-mailpit with additional commands. * Adds `cy.mailpitReady()` - an SMTP/API availability check for Mailpit that cypress-mailpit doesn't provide itself. * * Every other `cy.mailpit*` command is used as-is, straight from cypress-mail pit * (https://github.com/pushpak1300/cypress-mailpit) — see its README for the full command list. * * @example * ```typescript * cy.mailpitReady().should('be.true'); * cy.mailpitSendMail({subject: 'Hello'}); * cy.mailpitHasEmailsBySubject('Hello'); * ``` */ import 'cypress-mailpit'; declare global { namespace Cypress { interface Chainable { /** * Check whether the Mailpit server is up and ready to accept requests (SMTP + API + storage), * using Mailpit's own `/readyz` healthcheck endpoint, which requires no authentication. * @param {Partial} options Options merged into the underlying `cy.request()` call, e.g. `{timeout: 5000}` */ mailpitReady(options?: Partial): Chainable; } } } /** * Check whether the Mailpit server is up and ready to accept requests (SMTP + API + storage), * using Mailpit's own `/readyz` healthcheck endpoint, which requires no authentication. * @param {Partial} options Options merged into the underlying `cy.request()` call, e.g. `{timeout: 5000}` * @returns {Cypress.Chainable} true if Mailpit responded ready, false otherwise */ export declare function mailpitReady(options?: Partial): Cypress.Chainable;