import * as _nuxt_schema from '@nuxt/schema'; interface ModuleOptions { /** * Whether to enable the module. Default to `true` * * This is useful when you need to enable or disable msw based on the environment. * * When `enable: false`, the msw worker and server will not try to intercept requests. * * But keep auto import composables for types checking. * * @default true * @example * { * enable: process.env.TEST === 'true' * } * */ enable: boolean; /** * Path to the `nuxt-msw` runtime folder that include options file. * @default "~/msw" */ folderPath?: string; /** * Should include layers `nuxt-msw` settings or not * * @see https://github.com/shunnNet/nuxt-msw?tab=readme-ov-file#nuxt-layer * * @default true */ includeLayer?: boolean; /** * Use auto generated service worker file. You can turn to false when you need enable worker conditionally or merge with other worker. * If you turn to false, you need to generate the worker file by yourself. * default: true */ /** * * Enable unit test mode. default: false * * When this mode is enabled, you can use `setupNuxtMswServer` to start the msw server in a unit test environment (which is a Node.js environment). * * When enable: false, this mode is inactive. * * @see https://github.com/shunnNet/nuxt-msw?tab=readme-ov-file#nuxttest-utils * * @default false */ testUtils?: boolean; } declare const _default: _nuxt_schema.NuxtModule; export { type ModuleOptions, _default as default };