import { BasePage } from "../BasePage"; /** * Types of notifications that can appear in the Phantom Wallet */ export declare enum NotificationPageType { CONNECT = "connect", SIGNATURE = "signature", TOKEN_PERMISSION = "token_permission", SPENDING_CAP = "spending_cap" } /** * Represents the notification popup page in Phantom Wallet * This page handles various notifications like: * - Connect to dapp requests * - Transaction approvals * - Token permissions * - Message signing */ export declare class NotificationPage extends BasePage { /** * Helper method to get notification page URL */ private getNotificationUrl; /** * Helper method to wait for notification page */ private getNotificationPage; /** * Handles the connect to dapp notification */ connectToDapp(extensionId: string): Promise; /** * Confirms a transaction */ confirmTransaction(extensionId: string): Promise; /** * Rejects a transaction */ rejectTransaction(extensionId: string): Promise; /** * Signs a message */ signMessage(extensionId: string): Promise; approveTokenPermission(_extensionId: string): Promise; rejectTokenPermission(_extensionId: string): Promise; confirmSpendingCapRemoval(_extensionId: string): Promise; rejectSpendingCapRemoval(_extensionId: string): Promise; }