import { Compiler, Stats } from 'webpack';
import { BuildProps } from '@component-controls/core';
import { LoadingStore } from '@component-controls/store';
/**
 * return type from compile and watch functions
 */
export interface CompileResults {
    /**
     * bundle full path and name
     */
    bundleName: string;
    /**
     * the webpack stats object
     */
    stats: Stats;
    /**
     * the stories store
     */
    store?: LoadingStore;
}
/**
 * returns the default bumnle full path or args config
 *  ./public/component-controls.js
 */
export declare const getBundleName: () => string;
/**
 * callback function to monitor new documents/deleted documents
 */
export declare type CompilerCallbackFn = (results: CompileResults) => void;
export declare const runCompiler: (run: (compiler: Compiler, callback: Parameters<Compiler['run']>[0]) => void, props: BuildProps, callback?: CompilerCallbackFn | undefined) => Promise<CompileResults>;
