import { UiNode } from "@ory/client";
import { Locator, Response } from "@playwright/test";
import { MockFlow, MockFlowResponse, Traits } from "../types";
export declare class AuthPage {
    readonly locator: Locator;
    readonly traits: Record<string, Traits>;
    readonly formFields: Record<string, Locator>;
    readonly flowMessage: Locator;
    constructor(traits: Record<string, Traits> | UiNode[], locator: Locator);
    expectTraitFields(traits?: Record<string, Traits>): Promise<void>;
    expectTraitLabels(): Promise<void>;
    submitForm(buttonLocator?: string): Promise<void>;
    expectFlowMessage(text: string): Promise<void>;
    sessionForbiddenResponse(): MockFlowResponse;
    sessionSuccessResponse(): MockFlowResponse;
    registerMockCreateResponse({ flow, response }: MockFlow): Promise<void>;
    registerMockFetchResponse({ flow, response }: MockFlow): Promise<void>;
    registerMockSubmitResponse({ flow, response }: MockFlow): Promise<void>;
    registerMockWhoamiResponse({ response, state, }: Omit<MockFlow, "flow">): Promise<void>;
    interceptCreateResponse(flow: string): Promise<Response>;
    interceptFetchResponse(flow: string): Promise<Response>;
    interceptSubmitResponse(flow: string): Promise<Response>;
}
