import { ConditionFn, PostMessageCall } from './core';
/**
 * Controls the postMessage interceptor
 * @deprecated Will be removed in v13, please use Playwright instead
 */
export declare class PostMessageInterceptor {
    private readonly GET_INSTANCE;
    /**
     * Executes a script in the app
     * @param methodName
     * @param {...any} args
     */
    private execInstanceMethod;
    /**
     * Executes an async script in the app
     * @param methodName
     * @param {...any} args
     */
    private execInstanceAsyncMethod;
    /**
     * Initializes the PostMessageInterceptor in the app
     * NOTE: It does not start listening right away. You need to call listen()
     */
    initialize(): Promise<void>;
    /**
     * Stops the PostMessageInterceptor.
     */
    stop(): Promise<void>;
    /**
     * Listens for post messages
     * @param conditionFn an optional boolean function that will evaluate if the message should be saved or not in the stack
     */
    listen(conditionFn?: ConditionFn): Promise<void>;
    /**
     * Stops listening for post messages, resets the stack and clears the condition
     */
    stopListening(): Promise<void>;
    /**
     * Get all the post messages
     * @param timeoutInterval Interval in milliseconds between two checks
     * @param retries How many retries to be executed (-1 for infinite retries)
     */
    getMessages(timeoutInterval?: number, retries?: number): Promise<PostMessageCall[]>;
}
//# sourceMappingURL=post-message-interceptor.d.ts.map