import type { Stats } from '@rspack/core'; import type { DevOptions, Manifest } from '../types.js'; import type { BuildToolchain } from './build-toolchain.js'; import type { InstallFailure } from './install-registry-failure.js'; import { type OutputFile } from './output-files.js'; export declare function resolvedWorkspaceManifest(projectPath: string, manifestPath: string): string; export declare function declinedProjectRoot(projectManifestPath: string, manifestPath: string, previewing?: boolean, rootDir?: string): string; export declare function remoteFetchTimedOut(target: string, ms: number): string; export declare function manifestInvalidJson(manifestPath: string, error: unknown): string; export declare function packageJsonInvalid(packageJsonPath: string, reason: string): string; export declare function packageJsonUnopened(packageJsonPath: string, reason: string): string; export declare function packageJsonNotAFile(packageJsonPath: string, found: string): string; export declare function packageJsonNotUtf8(packageJsonPath: string, encoding: string): string; export declare function notAnExtensionManifestError(manifestPath: string): string; export declare function previewHasNothingToRun(manifestAtOutput: string): string; export declare function manifestNotFoundError(manifestPath: string, candidates?: string[]): string; export declare function manifestInPublicError(manifestPath: string): string; export declare function companionManifestNotProjectError(manifestPath: string, companionManifestPath: string): string; export declare function sessionStateIgnoreAdded(gitignorePath: string): string; export declare function previewingSourceFallback(browser: DevOptions['browser'], distDir: string): string; export declare function previewing(browser: DevOptions['browser'], noBrowser?: boolean): string; export declare function starting(browser: DevOptions['browser'], noBrowser?: boolean): string; export declare function extensionLoadRecovered(): string; export declare function extensionLoadStillRefused(reason: string): string; export declare function browserLaunchFailed(browser: DevOptions['browser'], reason: string, code?: unknown): string; export declare function authorInstallNotice(target: string): string; export declare function developArtifactsMissing(missing: string[], rebuild?: { command: string; developRoot: string; testRunOptIn?: string; } | { watching: true; }): string; export declare function developCompileOutput(output: string): string; export declare function projectInstallInWorkspaceRoot(workspaceRoot: string, managerName?: string): string; export declare function projectInstallRetry(failure: InstallFailure, delayMs: number, attempt: number, attempts: number): string; export declare function projectInstallRegistryNotReady(failure: InstallFailure, pmName: string, attempts: number, waitedMs: number): string; export declare function projectInstallReleaseTooYoung(failure: Extract, pmName: string): string; export declare function projectInstallManagerNotFound(pmName: string): string; export declare function projectInstallManagerNotDownloaded(failure: Extract, pmName: string, registryReadFrom?: 'npm_config_registry' | '.npmrc'): string; export declare function projectInstallFailed(pmName: string, exitCode: number | null | undefined, reason?: string): string; export declare function projectInstallScriptsDisabled(pmName: string): string; export declare function anotherDevSessionActive(browser: string, pid: number, runId: string): string; export declare function liveDevSessionOwnsContract(command: string, pid: number, readyPath: string): string; export declare function sessionContractUnwritable(filePath: string, reason: string): string; declare const PROTECTED_FOLDER_NAMES: { readonly project: 'the project root or a folder above it'; readonly cwd: 'the current folder or a folder above it'; readonly home: 'the home folder or a folder above it'; readonly 'session-state': 'where Extension.js keeps session state and browser profiles'; }; export declare function buildOutDirInvalid(value: string, reason: 'project-root' | 'not-a-build' | keyof typeof PROTECTED_FOLDER_NAMES, resolved?: string, where?: 'inside' | 'outside'): string; export declare function buildOutputFolderForeign(resolved: string): string; export declare function leftoverOutputFolder(leftover: string, current: string): string; export declare function buildOutputPathRefused(resolved: string, reason: keyof typeof PROTECTED_FOLDER_NAMES): string; export declare function buildOutputFolderNotWritable(folder: string, reason: string): string; export declare function buildOutputNotPublished(distPath: string, error: unknown): string; export declare function buildZipDirInvalid(value: string, reason: 'empty' | 'outside' | 'inside-build', resolved?: string): string; export declare function productionLoopbackOrigins(origins: Array<{ pattern: string; where: string; }>): string; export declare function productionLoopbackOriginsText(origins: Array<{ pattern: string; where: string; }>): string; export declare function buildSharesDevDist(browser: string, distDisplay: string, pid: number): string; export declare function anotherDevSessionRefused(browser: string, pid: number, port: number | null): string; export declare function buildAssetsTree(stats: Stats | undefined, outputFiles?: OutputFile[]): string; export declare function buildComplete(browser: DevOptions['browser'], distDisplayPath: string, totalBytes?: number, mode?: 'development' | 'production' | 'none', sourceMapBytes?: number): string; export declare function buildToolchain(toolchain: BuildToolchain): string; export declare function operaBuildUnminified(): string; export declare function addonLintSummary(errorCount: number, warningCount: number, distDisplay: string): string; export declare function addonLintFinding(level: 'error' | 'warning', code: string, message: string, location: string, attribution?: string): string; export declare function addonLintDependencyAttribution(packages: string[], onlyDependencies: boolean): string; export declare function addonLintUnsupportedApiFix(browser: string): string; export declare function addonLintFileTooLargeFix(limitMb: number, singleFileSurface: string | null): string; export declare function fileTooLargeForStore(file: string, bytes: number, fix: string): string; export declare function addonLintReviewerNote(noteDisplay: string): string; export declare function addonLintMore(hiddenCount: number, distDisplay: string): string; export declare function addonLintNotInstalled(installHint: string, staleNote?: string | null): string; export declare function addonLintFailed(reason: string, distDisplay: string, staleNote?: string | null): string; export declare function addonLintUnusable(reason: string, installHint: string, staleNote?: string | null): string; export declare function optionalCopyFellBack(dependencyId: string, failed: { copy: string; why: string; }[], usedCopy: string): string; export declare function addonLintFailedDebug(reason: string): string; export declare function buildFailed(errorCount: number, outputInPlace?: string): string; type LooseBuildWarning = string | null | undefined | { message?: unknown; details?: unknown; reason?: unknown; description?: unknown; name?: unknown; moduleName?: unknown; moduleIdentifier?: unknown; originName?: unknown; pluginName?: unknown; file?: unknown; chunkName?: unknown; }; export declare function buildWarningsDetails(warnings: LooseBuildWarning[]): string; export declare function downloadingProjectPath(projectName: string, url: string): string; export declare function creatingProjectPath(): string; export declare function reusingDownloadedProject(destinationPath: string, url: string): string; export declare function remoteSourceDestinationTaken(destinationPath: string, source: string): string; export declare function downloadedProjectFolderNotFound(cwd: string, candidates: string[]): string; export declare function packagingSourceFiles(zipPath: string): string; export declare function zipSkippedSymlinks(links: string[]): string; export declare function zipArtifactNotCreated(kind: 'source' | 'dist', zipPath: string, reason: string): string; export declare function zipArtifactNotCreatedText(kind: 'source' | 'dist', zipPath: string, reason: string): string; export declare function buildFailedOutputInPlace(reasons: string[], distPath: string): string; export declare function zipArtifactReady(zipPath: string, sizeInBytes: number): string; export declare function zipEdgeKeyDropped(zipPath: string): string; export declare function duplicateOutputFiles(distDisplay: string, group: { names: string[]; size: number; }, importedFrom: ReadonlyMap): string; export declare function developmentArtifactsKept(distPath: string, kept: string[]): string; export declare function packagingDistributionFiles(zipPath: string): string; export declare function treeWithSourceAndDistFiles(browser: DevOptions['browser'], name: string, sourceZip: string, destZip: string): string; export declare function treeWithDistFilesBrowser(name: string, ext: string, browser: DevOptions['browser'], zipPath: string): string; export declare function treeWithSourceFiles(name: string, ext: string, browser: DevOptions['browser'], zipPath: string): string; export declare function writingTypeDefinitions(manifest: Manifest): string; export declare function updatingTypeDefinitions(filePath: string): string; export declare function writingTypeDefinitionsError(error: unknown): string; export declare function downloadingText(url: string): string; export declare function unpackagingExtension(zipFilePath: string): string; export declare function unpackagedSuccessfully(): string; export declare function failedToDownloadOrWriteZIPFileError(error: unknown): string; export declare function remoteZipAccessRefused(url: string, status: number, expiry?: { at: Date; expired: boolean; }): string; export declare function removedWhitespaceFromUrl(url: string): string; export declare function failedToWriteZIPFileError(error: unknown): string; export declare function invalidRemoteZip(url: string, contentType: string): string; export declare function notAZipArchive(source: string, contentType?: string): string; export declare function remoteZipDamaged(url: string, cause: unknown): string; export declare function zipEntryOutsideFolder(source: { url: string; } | { path: string; }, entry: string): string; export declare function localZipUnreadable(zipFilePath: string, cause?: unknown): string; export declare function localZipNotFound(zipFilePath: string): string; export declare function debugManagedDepsSkipped(error: unknown): string; export declare function debugConfigFileInUse(fileName: string): string; export declare function debugDirs(manifestDir: string, packageJsonDir: string): string; export declare function debugBrowser(browser: DevOptions['browser'], chromiumBinary?: string, geckoBinary?: string): string; export declare function debugSplitChunksNarrowed(optionPaths: string[]): string; export declare function runtimeChunkKeptInline(runtimeChunk: unknown): string; export declare function configResolvedChangeIgnored(keys: string[]): string; export declare function debugOutputPath(pathValue: string): string; export declare function previewingCustomOutput(browser: DevOptions['browser'], outputPath: string, distPath: string): string; export declare function previewLauncherRequired(): string; export declare function controlNeedsBrowser(command: string): string; export declare function previewBuildBrowserMismatch(outputPath: string, builtFor: string, asked: string): string; export declare function productionControlOpen(browser: DevOptions['browser'], controlledPath: string, distPath: string, allowEval: boolean, hasBackground?: boolean): string; export declare function debugPreviewOutput(outputPath: string, distPath: string): string; export declare function debugContextPath(packageJsonDir: string): string; export declare function debugExtensionsToLoad(extensions: string[]): string; export declare function companionExtensionNotResolved(entry: string, manifestPath: string, declaredIn: string): string; export declare function scannedCompanionOutsideProject(entry: string, leadsTo: string): string; export declare function scannedCompanionOutsideProjectText(entry: string, target: string): string; export declare function companionLinkNotAStoreLink(entry: string): string; export declare function companionEntryLooksLikeStoreId(entry: string): string; export declare function companionEntryNotLinkOrFolder(entry: string): string; export declare function companionStoreDownloadEmpty(storeUrl: string, folder: string): string; export declare function companionExtensionsFolderNotFound(dir: string, folderPath: string, declaredIn: string): string; export declare function noCompanionExtensionsResolved(): string; export declare function configWrongShape(configPath: string, value: unknown): string; export declare function configHookReturnedNoConfig(configPath: string, value: unknown): string; export declare function configUnknownKeys(configPath: string, keys: string[], accepted: readonly string[]): string; export declare function configUnknownNestedKey(configPath: string, keyPath: string, suggestion?: string): string; export declare function configLoadingError(configPath: string, error: unknown): string; export declare function thrownValueText(thrown: unknown): string; export declare function errorWithoutMessageText(thrownAt?: string): string; export declare function buildCommandFailed(error: unknown): string; export declare function devCommandFailed(error: unknown): string; export declare function safariInvalidBundleId(bundleId: string): string; export declare function safariAppIconNotFound(iconPath: string): string; export declare function safariBuildOutputNotFound(outputPath: string): string; export declare function managedDependencyCopyWarning(duplicates: Array<{ name: string; shipped: string; }>, configPath: string): string; export declare function unresolvedCssUrlRef(issuerPath: string, request: string, strict?: boolean): string; export declare function unresolvedScriptUrlRef(issuerPath: string, request: string, strict?: boolean): string; export declare function manifestV2OnChromium(target: string, usesBlockingWebRequest: boolean): string; export {};