import type { BuildContext } from "../types.d.ts";
import type FileCache from "../utils/file-cache.d.ts";
/**
 * Main build function that orchestrates the entire build process.
 * Handles both JavaScript/TypeScript compilation and type definition generation.
 * @param context Build context containing configuration and state
 * @param fileCache Cache instance for file operations
 * @returns Promise resolving to a boolean indicating build success
 * @example
 * ```typescript
 * const success = await build(buildContext, new FileCache());
 * if (success) {
 *   console.log('Build completed successfully');
 * }
 * ```
 * @throws {Error} If the build process encounters critical errors
 * @public
 */
declare const build: (context: BuildContext, fileCache: FileCache) => Promise<boolean>;
export = build;
