import { runReqInboundStage3ContextCapture } from './index.js';
import { normalizeContextCaptureLabelWithNative } from '../../../../../../router/virtual-router/engine-selection/native-hub-pipeline-req-inbound-semantics.js';
export function createResponsesContextCapture(captureImpl) {
    return (options) => runReqInboundStage3ContextCapture({
        rawRequest: options.rawRequest,
        adapterContext: options.adapterContext,
        stageRecorder: options.stageRecorder,
        captureContext: captureImpl
    });
}
export function createNoopContextCapture(label) {
    const normalizedLabel = normalizeContextCaptureLabelWithNative(label);
    return (options) => runReqInboundStage3ContextCapture({
        rawRequest: options.rawRequest,
        adapterContext: options.adapterContext,
        stageRecorder: options.stageRecorder,
        captureContext: () => ({ stage: normalizedLabel })
    });
}
