import type { Compiler } from '@rspack/core'; import type { DevOptions } from '../types.js'; interface ZipPluginOptions { manifestPath?: string; browser: DevOptions['browser']; zipData?: { zip?: boolean; zipSource?: boolean; zipFilename?: string; zipDir?: string; }; } export declare function sanitize(input: string): string; export declare function inArchiveOrder(files: string[]): string[]; export declare function isCompanionExtension(file: string, ownFolder?: string): boolean; export declare function isDeniedFromSourceZip(file: string): boolean; type LeftOutReason = 'key' | 'registry' | 'archive' | 'build' | 'env'; interface LeftOut { reason: LeftOutReason; path: string; } export declare function isOwnArchiveName(file: string, explicitStem?: string): boolean; export declare function findNestedBuildFolders(files: string[]): string[]; export declare function leftOutOfSourceByName(listed: string, buildFolders: string[], explicitStem?: string): LeftOut | undefined; export declare function holdsRegistrySecret(text: string): boolean; export declare function leftOutOfExtensionZip(file: string, explicitStem?: string): LeftOut | 'silent' | undefined; export declare function findSessionFolders(files: string[], within: 'source' | 'output'): string[]; interface BuildOutput { outPath: string; archives: string[]; archiveDir?: string; explicitStem?: string; } export declare function getFilesToZip(projectDir: string, output?: BuildOutput, manifestPath?: string): Promise<{ files: string[]; skippedLinks: string[]; skippedFolders: string[]; leftOut: LeftOut[]; }>; export declare class ZipPlugin { private readonly options; private readonly browser; private readonly zipData; constructor(options: ZipPluginOptions); apply(compiler: Compiler): void; } export {};