import { getAwaitedIrType } from "../types/type-ops.js";
export const getReturnExpressionExpectedType = (declaredReturnType, isAsync) => {
    if (!declaredReturnType) {
        return undefined;
    }
    return isAsync
        ? (getAwaitedIrType(declaredReturnType) ?? declaredReturnType)
        : declaredReturnType;
};
//# sourceMappingURL=return-expression-types.js.map