/**
 * Finalize Output
 *
 * NATIVE BRIDGE: Delegates ALL finalization (Phase 8/9/10) to Rust (`native/compiler-native/src/finalize.rs`).
 */
import type { CompiledTemplate } from '../output/types';
import type { ZenIR, BundlePlan } from '../ir/types';
/**
 * Finalized output ready for browser
 */
export interface FinalizedOutput {
    html: string;
    js: string;
    npmImports: string;
    styles: string[];
    hasErrors: boolean;
    errors: string[];
    /** Compiler-emitted bundling plan. If present, bundling MUST occur. If absent, bundling MUST NOT occur. */
    bundlePlan?: BundlePlan;
}
/**
 * Finalize compiler output (Native Bridge)
 *
 * @param ir - Intermediate representation
 * @param compiled - Compiled template
 * @returns Finalized output
 */
export declare function finalizeOutput(ir: ZenIR, compiled: CompiledTemplate): Promise<FinalizedOutput>;
/**
 * Generate final output with error handling
 */
export declare function finalizeOutputOrThrow(ir: ZenIR, compiled: CompiledTemplate): Promise<FinalizedOutput>;
