UNPKG

extension-develop

Version:
122 lines (121 loc) 10.1 kB
import { Stats } from '@rspack/core'; import { Manifest } from '../webpack-types'; import { DevOptions } from '../../develop-lib/config-types'; export declare function capitalize(browser: DevOptions['browser']): string; export declare function boring(manifestName: string, duration: number, stats: Stats): string | undefined; export declare function integrationNotInstalled(integration: string, packageManager: string): string; export declare function envFileLoaded(): string; export declare function isUsingIntegration(integration: any): string; export declare function youAreAllSet(integration: string): string; export declare function installingRootDependencies(integration: string): string; export declare function integrationInstalledSuccessfully(integration: string): string; export declare function failedToInstallIntegration(integration: string, error: unknown): string; export declare function firefoxServiceWorkerError(): string; export declare function insecurePolicy(): string; export declare function noDefaultLocaleError(): string; export declare function webAccessibleResourcesV2Type(browser: DevOptions['browser']): string; export declare function webAccessibleResourcesV3Type(browser: DevOptions['browser']): string; export declare function deprecatedMessage(browser: DevOptions['browser'], errorData: any): string; export declare function invalidFieldType(errorData: any, browser: DevOptions['browser']): string; export declare function missingRequiredMessage(browser: DevOptions['browser'], message: string | undefined): string; export declare function handleMultipleAssetsError(manifestName: string, filename: string): string | undefined; export declare function handleCantResolveError(manifestName: string, moduleName: string): string; export declare function handleTopLevelAwaitError(manifestName: string): string; export declare function fileNotFound(errorSourcePath: string | undefined, missingFilePath: string): string; export declare function manifestFieldError(manifestName: string, manifestField: string, filePath: string): string; export declare function entryNotFoundWarn(manifestField: string, filePath: string): string; export declare function manifestInvalidError(error: NodeJS.ErrnoException): string; export declare function serverRestartRequiredFromManifestError(fileAdded: string, fileRemoved: string): string; export declare function resolverHtmlError(manifestName: string, filePath: string): string; export declare function resolverJsError(manifestName: string, filePath: string): string; export declare function resolverStaticError(manifestName: string, filePath: string): string; export declare function serverRestartRequiredFromSpecialFolderError(addingOrRemoving: string, folder: string, typeOfAsset: string, pathRelative: string): string; export declare function manifestNotFoundError(manifestName: string, manifestPath: string): string; export declare function creatingTSConfig(): string; export declare function serverIsRunning(useHttps: boolean, port: number): string; export interface MessageData { id: string; manifest: Manifest; management: chrome.management.ExtensionInfo; } export declare function isFirstRun(browser: DevOptions['browser']): string; export declare function webSocketError(error: any): string; export declare function backgroundIsRequired(backgroundChunkName: string, filePath: string): string; export declare function serverRestartRequiredFromHtml(filePath: string): string; export declare function javaScriptError(errorSourcePath: string, missingFilePath: string): string; export declare function cssError(errorSourcePath: string, missingFilePath: string): string; export declare function staticAssetError(errorSourcePath: string, missingFilePath: string): string; export declare function certRequired(): string; export declare function defaultPortInUse(port: number): string; export declare function portInUse(requestedPort: number, newPort: number): string; export declare function noExtensionIdError(): string; export declare function deprecatedShadowRoot(): string; export declare function isUsingCustomLoader(file: string): string; export declare function webextensionPolyfillNotFound(): string; export declare function registrySaved(registryPath: string): string; export declare function registrySaveError(error: unknown): string; export declare function smartPortAllocationExistingPorts(usedPorts: number[]): string; export declare function smartPortAllocationExistingWebSocketPorts(usedWebSocketPorts: number[]): string; export declare function smartPortAllocationUsingRequestedPort(port: number, webSocketPort: number): string; export declare function smartPortAllocationRequestedPortUnavailable(port: number): string; export declare function smartPortAllocationAllocatedPorts(port: number, webSocketPort: number): string; export declare function instanceManagerCreateInstanceCalled(params: any): string; export declare function instanceManagerRegistryAfterCreateInstance(registry: any): string; export declare function extensionManagerInstanceInitialized(instanceId: string, webSocketPort: number): string; export declare function extensionManagerCopyFilesWarning(error: unknown): string; export declare function extensionManagerInstanceNotFoundWarning(instanceId: string): string; export declare function extensionManagerCleanupWarning(error: unknown): string; export declare function firefoxDetectedFlatpak(): string; export declare function firefoxDetectedSnap(): string; export declare function firefoxDetectedTraditional(firefoxPath: string): string; export declare function firefoxDetectedCustom(firefoxPath: string): string; export declare function firefoxUsingFlatpakWithSandbox(): string; export declare function firefoxVersion(version: string): string; export declare function webSocketServerNotRunning(): string; export declare function webSocketConnectionCloseError(error: unknown): string; export declare function portManagerErrorAllocatingPorts(error: unknown): string; export declare function browserPluginFailedToLoad(browser: string, error: unknown): string; export declare function sharedUtilsWarning(message: string): string; export declare function extensionJsRunnerError(error: unknown): string; export declare function extensionJsRunnerCleanupError(error: unknown): string; export declare function extensionJsRunnerUncaughtException(error: unknown): string; export declare function extensionJsRunnerUnhandledRejection(promise: Promise<any>, reason: unknown): string; export declare function emptyLine(): string; export declare function configLoadingError(configType: string, error: unknown): string; export declare function autoExitModeEnabled(ms: number): string; export declare function autoExitTriggered(ms: number): string; export declare function autoExitForceKill(ms: number): string; export declare function reloadClientForcingExtensionReload(timestamp: string): string; export declare function reloadClientFailedToReloadExtension(error: unknown): string; export declare function reloadClientBackgroundScriptLoaded(cacheBuster: string): string; export declare function reloadClientBackgroundScriptStale(): string; export declare function firefoxReloadClientReloadingExtension(changedFile: string): string; export declare function firefoxReloadClientForcingExtensionReload(timestamp: string): string; export declare function firefoxReloadClientFailedToReloadExtension(error: unknown): string; export declare function firefoxReloadClientBackgroundScriptLoaded(cacheBuster: string): string; export declare function firefoxReloadClientBackgroundScriptStale(): string; export declare function enhancedProcessManagementStarting(browser: DevOptions['browser']): string; export declare function enhancedProcessManagementCleanup(browser: DevOptions['browser']): string; export declare function enhancedProcessManagementTerminating(browser: DevOptions['browser']): string; export declare function enhancedProcessManagementForceKill(browser: DevOptions['browser']): string; export declare function enhancedProcessManagementCleanupError(browser: DevOptions['browser'], error: unknown): string; export declare function enhancedProcessManagementInstanceCleanup(browser: DevOptions['browser']): string; export declare function enhancedProcessManagementInstanceCleanupComplete(browser: DevOptions['browser']): string; export declare function enhancedProcessManagementSignalHandling(browser: DevOptions['browser']): string; export declare function enhancedProcessManagementUncaughtException(browser: DevOptions['browser'], error: unknown): string; export declare function enhancedProcessManagementUnhandledRejection(browser: DevOptions['browser'], reason: unknown): string; export declare function instanceManagerHealthMonitoringStart(instanceId: string): string; export declare function instanceManagerHealthMonitoringPassed(instanceId: string): string; export declare function instanceManagerHealthMonitoringOrphaned(instanceId: string): string; export declare function instanceManagerHealthMonitoringFailed(instanceId: string, error: unknown): string; export declare function instanceManagerForceCleanupProject(projectPath: string): string; export declare function instanceManagerForceCleanupFound(instanceCount: number): string; export declare function instanceManagerForceCleanupInstance(instanceId: string): string; export declare function instanceManagerForceCleanupTerminating(processId: number): string; export declare function instanceManagerForceCleanupForceKilled(processId: number): string; export declare function instanceManagerForceCleanupInstanceTerminated(instanceId: string): string; export declare function instanceManagerForceCleanupError(instanceId: string, error: unknown): string; export declare function instanceManagerForceCleanupComplete(): string; export declare function instanceManagerProcessNoLongerRunning(instanceId: string, processId: number): string; export declare function instanceManagerPortsNotInUse(instanceId: string, port: number, webSocketPort: number): string; export declare function instanceManagerCleanedUpOrphanedInstance(instanceId: string): string;