import * as unplugin from 'unplugin'; declare enum BuildModifyMethod { /** * Replace all code in given directory with an empty export for each file: * * ```typescript * export {}; * ``` */ BuildTimeEmptyExport = "build-time-empty-export", /** * Add a runtime check to prevent imports from being used on the client. * While this does not prevent the import from being bundled, it should flag * an error in your testing process so that you can take action. * * The following will be added to the top of each file: * * ```typescript * if (!process.server) { throw new Error("YOUR MESSAGE"); } * ``` */ RunTimeProcessCheck = "run-time-process-check", /** * This is the same option as "run-time-process-check" except instead of checking * the `process` object, it checks that the `window` object isn't undefined. * * See `"run-time-process-check"` for more details. */ RunTimeWindowCheck = "run-time-window-check" } interface BuildOptions { /** Folder name, relative to project folder that should not be imported */ name: string; /** Enable console logs for imports to determine what name option should be used */ debug?: boolean; /** If a given `.method` is a run-time check, what message should be given to created Error? */ runtimeError?: string; /** * Specify method of preventing import. * Methods are prefixed "build-time-" to prevent code from being bundled * or "run-time-" to prevent code from being used (but still bundled). */ method?: BuildModifyMethod; } declare const _default: unplugin.UnpluginInstance; export { BuildModifyMethod, type BuildOptions, _default as default };