/**
 * Raw Fragments Service (Domain Layer)
 *
 * Handles storage of unknown fields and converted-value originals in the
 * raw_fragments table. Includes idempotence, race-condition handling, and
 * auto-enhancement queuing. Extracted from server.ts to enforce layer
 * boundaries.
 */
export interface StoreFragmentParams {
    sourceId: string;
    userId: string;
    entityId?: string;
    entityType: string;
    schemaVersion: string;
    key: string;
    value: unknown;
    reason: "unknown_field" | "converted_value_original";
    convertedTo?: unknown;
    interpretationId?: string | null;
}
export declare function storeFragment(params: StoreFragmentParams): Promise<boolean>;
export declare function storeConvertedOriginals(params: {
    sourceId: string;
    userId: string;
    entityId?: string;
    entityType: string;
    schemaVersion: string;
    originalValues: Record<string, unknown>;
    validFields: Record<string, unknown>;
}): Promise<number>;
export declare function storeUnknownFields(params: {
    sourceId: string;
    userId: string;
    entityId?: string;
    entityType: string;
    schemaVersion: string;
    unknownFields: Record<string, unknown>;
}): Promise<{
    count: number;
    fields: string[];
}>;
//# sourceMappingURL=raw_fragments.d.ts.map