import { DevServerProxy, ProxyOptions, RustifiedEnv } from "./config"; import { Issue } from "./issue"; export declare class ModuleBuildError extends Error { name: string; } export interface ResultWithIssues { issues: Issue[]; } type IssueKey = `${Issue["severity"]}-${Issue["filePath"]}-${string}-${string}`; export type IssuesMap = Map; export type EntryIssuesMap = Map; export declare function getIssueKey(issue: Issue): IssueKey; export declare function processIssues(result: ResultWithIssues, throwIssue: boolean, logErrors: boolean): void; export declare function processIssues(currentEntryIssues: EntryIssuesMap, key: string, result: ResultWithIssues, throwIssue: boolean, logErrors: boolean): void; export declare function isWellKnownError(issue: Issue): boolean; export declare function rustifyEnv(env: Record): RustifiedEnv; /** * Convert object-style proxy config into DevServerProxy array. * Object keys become context; string value → target + default changeOrigin; object value merged into ProxyRule. * * @example * proxy: [ * ...proxyFromObject({ * "/api": "http://localhost:3000", * "/auth": { target: "http://localhost:5000", changeOrigin: true }, * }), * ]; */ export declare function proxyFromObject(obj: Record): DevServerProxy; type AnyFunc = (this: T, ...args: any) => any; export declare function debounce>(fn: F, ms: number, maxWait?: number): (this: T, ...passedArgs: Parameters) => void; export {};