import type { Compiler } from '@rspack/core'; export declare const CONTENT_SCRIPT_OWNER_KEY_GLOBAL = "__EXTENSIONJS_REINJECT_KEY"; export declare const CONTENT_SCRIPT_OWNER_KEY_ATTRIBUTE = "data-extjs-reinject-key"; export type ContentScriptWrapperPoint = 'style-host-filter' | 'after-bridge-base' | 'after-owner-token' | 'after-style-urls' | 'after-cleanup-list' | 'after-register-cleanup' | 'in-composed-cleanup' | 'after-composed-cleanup' | 'before-asset-base' | 'mount-without-function' | 'after-mount' | 'mount-failed' | 'end-before-styles' | 'end-after-styles' | 'before-mount-call' | 'after-mount-call'; export interface ContentScriptWrapperModule { source: string; isMainWorld: boolean; } export interface ContentScriptWrapperReadModule extends ContentScriptWrapperModule { file: string; resourcePath: string; browser: string; isDeclaredEntry: boolean; defaultExport: { kind: 'none' | 'broken'; } | { kind: 'found'; name: string; callsElsewhere: number; }; } export interface ContentScriptWrapperExtension { textAt(point: ContentScriptWrapperPoint, module: ContentScriptWrapperModule): string; adoptsRoots?: boolean; loadsFiles?: boolean; readModule?(module: ContentScriptWrapperReadModule): void; } export declare function contentScriptWrapperExtensionsFor(compiler: Compiler): ContentScriptWrapperExtension[]; export declare function extendContentScriptWrapper(compiler: Compiler, extension: ContentScriptWrapperExtension): void;