import type { RagRetrievalResult, RagSourceKind } from '../../types/sparkContracts';
import type { CodebaseRegistry } from '../codebase/codebaseRegistry';
import type { CodeLookupLedger } from '../codebase/codeLookupLedger';
export interface SanitizedRagHit {
    chunkId: string;
    score: number;
    metadata?: {
        codebaseId?: string;
        kind: RagSourceKind;
        filePath?: string;
        lineRange?: {
            start: number;
            end: number;
        };
        symbol?: string;
        language?: string;
        commitHash?: string;
        vendor?: string;
        buildId?: string;
    };
    snippet?: string;
    unsupportedReason?: string;
    redactedCount?: number;
}
export interface SanitizedRagResult {
    query: string;
    hits: SanitizedRagHit[];
    probed: RagSourceKind[];
    retrievedAt: number;
    unsupportedReason?: string;
    legacyPath: boolean;
}
export interface FilterContext {
    toolName: 'lookup_app_source' | 'lookup_kernel_source' | 'lookup_aosp_source' | 'lookup_oem_sdk' | 'lookup_blog_knowledge';
    turn: number;
    codebaseRegistry?: CodebaseRegistry;
    ledger?: CodeLookupLedger;
    allowProviderSend?: boolean;
    sessionId?: string;
}
export declare function filterRagLookup(raw: RagRetrievalResult, ctx: FilterContext): Promise<SanitizedRagResult>;
//# sourceMappingURL=lookupResponseFilter.d.ts.map