import { ResolvedConfig } from '../config';
export interface DepOptimizationOptions {
    /**
     * Force optimize listed dependencies (supports deep paths).
     */
    include?: string[];
    /**
     * Do not optimize these dependencies.
     */
    exclude?: string[];
    /**
     * A list of linked dependencies that should be treated as source code.
     */
    link?: string[];
    /**
     * A list of depdendencies that imports Node built-ins, but do not actually
     * use them in browsers.
     */
    allowNodeBuiltins?: string[];
    /**
     * Automatically run `vite optimize` on server start?
     * @default true
     */
    auto?: boolean;
}
export interface DepOptimizationMetadata {
    hash: string;
    map: Record<string, string>;
    cjsEntries: Record<string, true>;
}
export declare function optimizeDeps(config: ResolvedConfig, force?: boolean | undefined, asCommand?: boolean): Promise<void>;
export declare function getDepHash(root: string, configPath: string | undefined): string;
