/**
 * context-pack.ts — Assembles the ContextPack fed to each invoker.
 *
 * Draws from:
 *   - memory.recallWithMetadata()  — top-N relevant memories
 *   - orchestrator.discoverCandidateFiles() — token-optimised file list
 *   - (optional) cr-graph structural context, if available
 *
 * All sources are best-effort: if any fails the pack is still returned with
 * whatever data was available.
 */
import type { ContextPack } from '../../invokers/types.js';
export interface ContextPackOptions {
    goal: string;
    repoRoot: string;
    repoName: string;
    memoryLimit: number;
    fileLimit: number;
    /** Optional: already-resolved memory entries. */
    memories?: Array<{
        id: string;
        content: string;
        tier: string;
        priority: number;
    }>;
    /** Optional: already-resolved file list. */
    files?: string[];
    /** Optional: stringified cr-graph context. */
    crGraphContext?: string | null;
}
export declare function buildContextPack(opts: ContextPackOptions): ContextPack;
/** Formats a ContextPack as a compact Markdown string for logging/debugging. */
export declare function summariseContextPack(pack: ContextPack): string;
