import type { InputPluginOption } from "rollup"; import type { RegisterExplicitIdFunction, Credential } from "./types"; import type { IsomorphicRollupFs } from "../fs-iface"; export interface EditableSourceCodeOnInstanceOptions { excludeSourcesPatterns?: string[]; } interface ReactPluginsOptions { scope: string; rootDir: string; /** * Absolute path to the project root directory. This differs from `rootDir` * (which points at the client source directory) and is required when * `editableSourceCodeOnInstance` is true so that `uiPageSourceManifest` * can record source file paths relative to the project root. */ projectRootDir?: string; registerExplicitId?: RegisterExplicitIdFunction; dev?: boolean; enableCacheBusting?: boolean; /** * When true, embeds the original source code (via `jsxSource`) and * emits a `uiPageSourceManifest` so the shipped bundle can be edited * in-place on a ServiceNow instance and with ServiceNow Build Agent. * * @default false */ editableSourceCodeOnInstance?: boolean | EditableSourceCodeOnInstanceOptions; /** * @deprecated Use `editableSourceCodeOnInstance` instead. */ embedSourceCodeAndHints?: boolean; watchPaths: string[]; proxyPaths: string[]; credential?: Credential; httpProxy?: string; omitDevUxGlobals?: boolean; fs?: IsomorphicRollupFs; } /** * Creates an updateSrcPath function for transforming script source paths * @param config Configuration options * @returns Function that transforms original path and emitted filename to final source path */ export declare const createUpdateSrcPath: (config: { scope: string; preserveSrc: boolean; enableCacheBusting: boolean; }) => (originalPath: string, emittedFileName: string) => string; declare const _default: ({ scope, rootDir, projectRootDir, registerExplicitId, dev, enableCacheBusting, editableSourceCodeOnInstance, embedSourceCodeAndHints, watchPaths, proxyPaths, credential, httpProxy, omitDevUxGlobals, fs, }: ReactPluginsOptions) => Promise; export default _default;