/**
 * Nexus Prime kernel — public surface.
 *
 * The kernel is a small, deliberately boring wrapper layer that owns the
 * contracts CLI / MCP / orchestrator talk to. PR 3 adds three concerns:
 *   - context capabilities (hypertuneMax, differential, sessions, budget)
 *   - runtime backend contract (RuntimeBackend / PhantomRuntimeBackend)
 *   - kernel.run.execute() delegating to the configured RuntimeBackend
 *
 * Usage:
 *   import { kernel } from '../kernel/index.js';
 *   const pack  = await kernel.run.compileContext({ ... });
 *   const step  = await kernel.run.step({ runId, stepId, task, mutations });
 *   const exec  = await kernel.run.execute({ runId, stepId, task });
 *   const ht    = kernel.run.hypertuneMax(task, files);
 *   const delta = kernel.run.differential(prev, curr);
 */
import { KernelContextService, type CompiledContextPack, type CompiledContextRequest, type SessionSummary, type ContextDelta, type TokenBudget, type FileRef, type AssemblyResult, type BudgetConfig, type ReadingPlan } from './context/index.js';
import { type RunMergeRequest, type RunMergeResult, type RunStepRequest, type RunStepResult, type RunVerifyRequest, type RunVerifyResult, type RuntimeBackend, type RuntimeExecuteInput, type ExecutedStep } from './execution/index.js';
export * from './context/index.js';
export * from './execution/index.js';
export * from './runtime/index.js';
/**
 * Kernel run-surface. Thin object; explicitly not a framework.
 * Only add methods here when the underlying kernel subsystem exists.
 */
export declare const kernel: {
    readonly run: {
        readonly compileContext: (input: CompiledContextRequest) => Promise<CompiledContextPack>;
        readonly init: () => Promise<void>;
        readonly hypertuneMax: (task: string, files: FileRef[], graphConnectivity?: (chunk: {
            source: string;
            label: string;
        }) => number) => Promise<{
            plan: ReadingPlan;
            assembly: AssemblyResult;
            budgetConfig: BudgetConfig;
        }>;
        readonly differential: (prev: SessionSummary, curr: FileRef[]) => ContextDelta;
        readonly loadLatestSessionSummary: () => Promise<SessionSummary | null>;
        readonly allocateBudget: (workers: Array<{
            id: string;
            estimatedValue: number;
            estimatedCost: number;
        }>, totalBudget?: number) => TokenBudget;
        readonly step: (input: RunStepRequest) => Promise<RunStepResult>;
        readonly verify: (input: RunVerifyRequest) => Promise<RunVerifyResult>;
        readonly merge: (input: RunMergeRequest) => Promise<RunMergeResult>;
        readonly execute: (input: RuntimeExecuteInput) => Promise<ExecutedStep>;
    };
};
export { KernelContextService };
export type { RuntimeBackend, RuntimeExecuteInput, ExecutedStep };
export type Kernel = typeof kernel;
