import type { ProcessedRequest, StandardizedRequest } from '../../../conversion/hub/types/standardized.js';
import type { RouterMetadataInput } from '../types.js';
import type { RoutingInstruction, RoutingInstructionState } from '../routing-instructions.js';
import type { VirtualRouterEngine } from '../engine-legacy.js';
export type RoutingStateResult = {
    routingState: RoutingInstructionState;
    stateKey: string;
    stopMessageScope?: string;
    metadataInstructions: RoutingInstruction[];
    instructions: RoutingInstruction[];
};
export declare function buildRoutingState(engine: VirtualRouterEngine, request: StandardizedRequest | ProcessedRequest, metadata: RouterMetadataInput): RoutingStateResult;
