import type { ComponentMountingOptions, VueWrapper } from '@vue/test-utils'; import type { Component } from 'vue'; /** * Function allowing developpers to use a common BDD format for tests * @returns given (describe), when (describe) and then (it) */ export declare function BddTest(): { given(description: string, fn: () => void): /*elided*/ any; when(description: string, fn: () => void): /*elided*/ any; and(description: string, fn: () => void): /*elided*/ any; then(description: string, fn: () => void): /*elided*/ any; }; export declare function mountComposable(fn: () => T): { result: T; unmount: () => void; }; /** * Mounts a Vue component with a mock router for testing. * * This function uses Vue Test Utils to mount the component by injecting * stubs for `RouterLink` and `RouterView` to simulate the router behavior * without launching a real instance. * * @template T * @param {Component} component - Vue component to mount. * @param {ComponentMountingOptions} [options] - Additional options for mounting the component. * @returns {Promise>>} the function return any as type because ts type is too complicated. */ export declare function mountWithRouter(component: Component, options?: ComponentMountingOptions): Promise>>;