import type { RouterMetadataInput } from '../../types.js';
import type { RoutingInstructionState } from '../../routing-instructions.js';
export type RoutingInstructionStateStoreLike = {
    loadSync: (key: string) => RoutingInstructionState | null;
    saveAsync: (key: string, state: RoutingInstructionState | null) => void;
    saveSync?: (key: string, state: RoutingInstructionState | null) => void;
};
export declare function resolveStopMessageScope(metadata: RouterMetadataInput): string | undefined;
export declare function getRoutingInstructionState(stickyKey: string | undefined, routingInstructionState: Map<string, RoutingInstructionState>, routingStateStore: RoutingInstructionStateStoreLike): RoutingInstructionState;
export declare function persistRoutingInstructionState(key: string, state: RoutingInstructionState, routingStateStore: RoutingInstructionStateStoreLike): void;
